RESOLVED FIXED 168119
REGRESSION (r196271): Web Inspector: DOM element loses focus/active selection after committing an inline attribute editor in DOMTreeOutline
https://bugs.webkit.org/show_bug.cgi?id=168119
Summary REGRESSION (r196271): Web Inspector: DOM element loses focus/active selection...
Blaze Burg
Reported 2017-02-10 09:38:14 PST
Created attachment 301162 [details] [VIDEO] Steps to reproduce: 1. Inspect Element 2. Press Enter to edit the first attribute of the element 3. Press Enter again to commit the unedited attribute value => DOM attribute has focus ring, but loses active selection 4. Further 'Enter' keypresses should edit/commit the attribute => Nothing happens
Attachments
[VIDEO] (9.85 MB, video/quicktime)
2017-02-10 09:38 PST, Blaze Burg
no flags
Patch (2.12 KB, patch)
2017-02-10 17:37 PST, Matt Baker
no flags
Patch (1.89 KB, patch)
2017-02-15 21:28 PST, Matt Baker
no flags
Radar WebKit Bug Importer
Comment 1 2017-02-10 09:39:36 PST
Matt Baker
Comment 2 2017-02-10 12:50:27 PST
Matt Baker
Comment 3 2017-02-10 17:22:56 PST
This also affects editing DataGridNodes (localStorage). The problem is that these two editing scenarios aren't being handled correctly by WebInspector._focusChanged, which doesn't update the previous/current focus elements when the focus event target is a non-CodeMirror editable field. Non-editable fields (which until http://trac.webkit.org/changeset/196271 included DOM attributes and grid nodes), as well as editable CodeMirror fields, are handled correctly.
Matt Baker
Comment 4 2017-02-10 17:37:20 PST
Matt Baker
Comment 5 2017-02-15 21:28:25 PST
Blaze Burg
Comment 6 2017-02-22 18:27:11 PST
Comment on attachment 301701 [details] Patch r=me
WebKit Commit Bot
Comment 7 2017-03-09 16:52:11 PST
Comment on attachment 301701 [details] Patch Clearing flags on attachment: 301701 Committed r213689: <http://trac.webkit.org/changeset/213689>
WebKit Commit Bot
Comment 8 2017-03-09 16:52:15 PST
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.