RESOLVED FIXED 200125
Web Inspector: Timelines: Develop > Start Timeline Recording doesn't work when focused on a detached inspector window
https://bugs.webkit.org/show_bug.cgi?id=200125
Summary Web Inspector: Timelines: Develop > Start Timeline Recording doesn't work whe...
Devin Rousso
Reported 2019-07-25 08:20:04 PDT
# STEPS TO REPRODUCE: 1. inspect any page 2. close/"remove" the Timelines tab 3. detach Web Inspector 4. Develop > Start Timeline Recording => nothing happens (if the page is focused instead of the detached inspector window, the Timelines tab is re-"added" and works as expected)
Attachments
Patch (20.68 KB, patch)
2019-07-25 16:08 PDT, Devin Rousso
no flags
Patch (20.78 KB, patch)
2019-08-02 12:54 PDT, Devin Rousso
no flags
Radar WebKit Bug Importer
Comment 1 2019-07-25 08:20:24 PDT
Devin Rousso
Comment 2 2019-07-25 16:08:03 PDT
Blaze Burg
Comment 3 2019-08-02 11:18:11 PDT
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.
Devin Rousso
Comment 4 2019-08-02 12:36:47 PDT
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
Devin Rousso
Comment 5 2019-08-02 12:54:55 PDT
WebKit Commit Bot
Comment 6 2019-08-02 13:39:27 PDT
Comment on attachment 375442 [details] Patch Clearing flags on attachment: 375442 Committed r248177: <https://trac.webkit.org/changeset/248177>
WebKit Commit Bot
Comment 7 2019-08-02 13:39:29 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.