RESOLVED FIXED 203155
Web Inspector: Elements: $0 is shown for the wrong node when selecting elements in a user agent shadow tree
https://bugs.webkit.org/show_bug.cgi?id=203155
Summary Web Inspector: Elements: $0 is shown for the wrong node when selecting elemen...
Devin Rousso
Reported 2019-10-18 09:58:18 PDT
# STEPS TO REPRODUCE: 1. inspect any page with a UserAgent shadow tree (e.g. an `<input>`) 2. in the Elements Tab, select a node inside the UserAgent shadow tree => $0 appears next to the newly selected node 3. evaluate `$0` in the Console => the previously selected node (NOT the node inside the UserAgent shadow tree) is logged
Attachments
Patch (8.04 KB, patch)
2019-10-18 10:01 PDT, Devin Rousso
mattbaker: review+
Patch (8.05 KB, patch)
2019-10-18 14:17 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-10-18 10:01:08 PDT
Matt Baker
Comment 2 2019-10-18 13:57:53 PDT
Comment on attachment 381311 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=381311&action=review r=me > Source/WebInspectorUI/ChangeLog:8 > + Rather than "blindly" using the last selected node (from `WI.TreeOutline`), we should wait Switch to a more descriptive term like 'naively', so you can eliminate the double-quotes. > Source/WebInspectorUI/ChangeLog:9 > + to see if the inspected page actually "accepts" the selected node as being inspectable and Let's not use quotation marks around words like this. AMA style says that other than quoting material directly from a source, quotation marks are used "to introduce a word or phrase used as an ironic comment, as slang, or as an invented or coined expression". Pick words that are more technical/descriptive if necessary, or just remove the quotes.
Devin Rousso
Comment 3 2019-10-18 14:17:56 PDT
WebKit Commit Bot
Comment 4 2019-10-18 15:28:05 PDT
Comment on attachment 381326 [details] Patch Clearing flags on attachment: 381326 Committed r251302: <https://trac.webkit.org/changeset/251302>
WebKit Commit Bot
Comment 5 2019-10-18 15:28:06 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6 2019-10-18 15:29:19 PDT
Note You need to log in before you can comment on or make changes to this bug.