Summary: | Web Inspector: Timelines: Develop > Start Timeline Recording doesn't work when focused on a detached inspector window | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Devin Rousso <hi> | ||||||
Component: | Web Inspector | Assignee: | Devin Rousso <hi> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bburg, commit-queue, ews-watchlist, hi, inspector-bugzilla-changes, joepeck, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Devin Rousso
2019-07-25 08:20:04 PDT
Created attachment 374920 [details]
Patch
Comment on attachment 374920 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=374920&action=review r=me > Source/WebKit/UIProcess/API/Cocoa/_WKInspector.mm:-115 > -- (void)showTimelines This does appear to be dead code once we remove the Safari call and rely on togglePageProfiling instead. > Source/WebKit/UIProcess/WebInspectorProxy.cpp:350 > m_isProfilingPage = !m_isProfilingPage; Is this flag flipping now unnecessary, since we'll get notification from WebProcess once it actually works? If recording fails to start for some reason, this would erroneously think the timeline recording is active when it is not. Comment on attachment 374920 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=374920&action=review >> Source/WebKit/UIProcess/API/Cocoa/_WKInspector.mm:-115 >> -- (void)showTimelines > > This does appear to be dead code once we remove the Safari call and rely on togglePageProfiling instead. Yup! >> Source/WebKit/UIProcess/WebInspectorProxy.cpp:350 >> m_isProfilingPage = !m_isProfilingPage; > > Is this flag flipping now unnecessary, since we'll get notification from WebProcess once it actually works? If recording fails to start for some reason, this would erroneously think the timeline recording is active when it is not. Good point! =D Created attachment 375442 [details]
Patch
Comment on attachment 375442 [details] Patch Clearing flags on attachment: 375442 Committed r248177: <https://trac.webkit.org/changeset/248177> All reviewed patches have been landed. Closing bug. |