RESOLVED FIXED Bug 203743
Web Inspector: default to focusing the console prompt if no other content is focused after opening Web Inspector
https://bugs.webkit.org/show_bug.cgi?id=203743
Summary Web Inspector: default to focusing the console prompt if no other content is ...
Devin Rousso
Reported 2019-11-01 09:54:39 PDT
If the user is looking at the Canvas Tab, for example, there is no preserved selection/focused state between Web Inspector sessions, so if the user opens Web Inspector to the Canvas Tab, there will be no initial focus.
Attachments
Patch (2.34 KB, patch)
2019-11-01 10:01 PDT, Devin Rousso
eric.carlson: review+
Patch (2.34 KB, patch)
2019-11-01 13:50 PDT, Devin Rousso
hi: commit-queue+
Archive of layout-test-results from webkit-cq-01 for mac-highsierra (3.70 MB, application/zip)
2019-11-01 15:21 PDT, WebKit Commit Bot
no flags
Patch (2.34 KB, patch)
2019-11-01 16:20 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-11-01 10:01:52 PDT
Eric Carlson
Comment 2 2019-11-01 11:46:19 PDT
Comment on attachment 382590 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=382590&action=review Thank you! > Source/WebInspectorUI/UserInterface/Base/Main.js:925 > + return !WI._defaultFocusedQuickConcolePrompt && WI.quickConsole.prompt.focused; Nit: s/_defaultFocusedQuickConcolePrompt/_defaultFocusedQuickConsolePrompt/ > Source/WebInspectorUI/UserInterface/Base/Main.js:1364 > + WI._defaultFocusedQuickConcolePrompt = false; Ditto. > Source/WebInspectorUI/UserInterface/Base/Main.js:1546 > + WI._defaultFocusedQuickConcolePrompt = true; Ditto
Blaze Burg
Comment 3 2019-11-01 11:48:11 PDT
Comment on attachment 382590 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=382590&action=review r=me > Source/WebInspectorUI/UserInterface/Base/Main.js:925 > + return !WI._defaultFocusedQuickConcolePrompt && WI.quickConsole.prompt.focused; Typo: console A better name could be: WI._didAutofocusConsolePrompt
Devin Rousso
Comment 4 2019-11-01 13:50:12 PDT
WebKit Commit Bot
Comment 5 2019-11-01 15:05:39 PDT Comment hidden (obsolete)
WebKit Commit Bot
Comment 6 2019-11-01 15:05:45 PDT Comment hidden (obsolete)
WebKit Commit Bot
Comment 7 2019-11-01 15:21:44 PDT Comment hidden (obsolete)
WebKit Commit Bot
Comment 8 2019-11-01 15:21:46 PDT Comment hidden (obsolete)
Devin Rousso
Comment 9 2019-11-01 16:20:08 PDT
WebKit Commit Bot
Comment 10 2019-11-01 17:19:21 PDT
Comment on attachment 382648 [details] Patch Clearing flags on attachment: 382648 Committed r251958: <https://trac.webkit.org/changeset/251958>
WebKit Commit Bot
Comment 11 2019-11-01 17:19:22 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 12 2019-11-01 17:20:22 PDT
Note You need to log in before you can comment on or make changes to this bug.