Bug 203932 - Web Inspector: REGRESSION(r251958): console prompt is automatically focused when page is reloaded
Summary: Web Inspector: REGRESSION(r251958): console prompt is automatically focused w...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on: 203743
Blocks:
  Show dependency treegraph
 
Reported: 2019-11-06 16:53 PST by Devin Rousso
Modified: 2019-11-07 15:41 PST (History)
7 users (show)

See Also:


Attachments
Patch (1.85 KB, patch)
2019-11-06 16:54 PST, Devin Rousso
no flags Details | Formatted Diff | Diff
Patch (1.96 KB, patch)
2019-11-07 15:08 PST, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2019-11-06 16:53:26 PST
# STEPS TO REPRODUCE:
1. inspect any page
2. go to the Timelines Tab
3. select something in the Timelines Tab (e.g. a record row in the table)
4. reload the page
 => console prompt becomes focused
Comment 1 Devin Rousso 2019-11-06 16:54:44 PST
Created attachment 382987 [details]
Patch
Comment 2 Timothy Hatcher 2019-11-07 11:03:14 PST
Comment on attachment 382987 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=382987&action=review

> Source/WebInspectorUI/UserInterface/Base/Main.js:1565
> +    if (WI._didAutofocusConsolePrompt === undefined) {

!WI._didAutofocusConsolePrompt
Comment 3 Devin Rousso 2019-11-07 11:05:37 PST
Comment on attachment 382987 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=382987&action=review

>> Source/WebInspectorUI/UserInterface/Base/Main.js:1565
>> +    if (WI._didAutofocusConsolePrompt === undefined) {
> 
> !WI._didAutofocusConsolePrompt

I actually specifically want to use `undefined` because it's set to `false` inside `WI._focusChanged`.
Comment 4 WebKit Commit Bot 2019-11-07 12:18:41 PST
Comment on attachment 382987 [details]
Patch

Rejecting attachment 382987 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'apply-attachment', '--no-update', '--non-interactive', 382987, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Logging in as commit-queue@webkit.org...
Fetching: https://bugs.webkit.org/attachment.cgi?id=382987&action=edit
Fetching: https://bugs.webkit.org/show_bug.cgi?id=203932&ctype=xml&excludefield=attachmentdata
Processing 1 patch from 1 bug.
Processing patch 382987 from bug 203932.
Fetching: https://bugs.webkit.org/attachment.cgi?id=382987
Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Timothy Hatcher']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Parsed 2 diffs from patch file(s).
patching file Source/WebInspectorUI/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/WebInspectorUI/UserInterface/Base/Main.js
Hunk #1 FAILED at 1561.
1 out of 1 hunk FAILED -- saving rejects to file Source/WebInspectorUI/UserInterface/Base/Main.js.rej

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Timothy Hatcher']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: https://webkit-queues.webkit.org/results/13223707
Comment 5 Devin Rousso 2019-11-07 15:08:50 PST
Created attachment 383079 [details]
Patch
Comment 6 WebKit Commit Bot 2019-11-07 15:40:04 PST
Comment on attachment 383079 [details]
Patch

Clearing flags on attachment: 383079

Committed r252213: <https://trac.webkit.org/changeset/252213>
Comment 7 WebKit Commit Bot 2019-11-07 15:40:05 PST
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2019-11-07 15:41:23 PST
<rdar://problem/57001696>