RESOLVED FIXED 60192
Web Inspector: add test for shadow DOM access in the console API
https://bugs.webkit.org/show_bug.cgi?id=60192
Summary Web Inspector: add test for shadow DOM access in the console API
Andrey Kosyakov
Reported 2011-05-04 11:44:13 PDT
We don't expose shadow DOM to JS normally, yet now that we show it in Elements panel, it may be accessed with $0. This test so far is the only place where we assure that a JS wrapper is properly created for shadow root and other shadow nodes. This is supposed to guard against things like bug 60026
Attachments
patch (4.94 KB, patch)
2011-05-04 11:46 PDT, Andrey Kosyakov
yurys: review+
Andrey Kosyakov
Comment 1 2011-05-04 11:46:30 PDT
Yury Semikhatsky
Comment 2 2011-05-05 03:33:25 PDT
Comment on attachment 92292 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=92292&action=review > LayoutTests/http/tests/inspector/elements-test.js:81 > +InspectorTest.selectNode = function(node, callback) Can you change InspectorTest.selectNodeWithId to call this method as well? > LayoutTests/inspector/console/console-shadow-dom-access.html:25 > + expressions.splice(0, 1); var expression = expressions.shift()
Andrey Kosyakov
Comment 3 2011-05-05 05:16:16 PDT
Manually committed a version with yurys' suggestions at r85849: http://trac.webkit.org/changeset/85849
Note You need to log in before you can comment on or make changes to this bug.