Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Issue 2763913002: Allow DOM.getNodeForLocation to skip to nearest non-shadow ancestor (Closed)

Created:
3 years, 9 months ago by peleg
Modified:
3 years, 9 months ago
Reviewers:
pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow DOM.getNodeForLocation to skip to nearest non-shadow ancestor Added optional param, includeUserAgentShadowDOM, to allow DOM.getNodeForLocation to skip to the nearest non-shadow ancestor. BUG=669939 TEST=Run blink test with: python third_party/WebKit/Tools/Scripts/run-webkit-tests -t Default third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getNodeForLocation-skip-shadow.html Review-Url: https://codereview.chromium.org/2763913002 Cr-Commit-Position: refs/heads/master@{#459261} Committed: https://chromium.googlesource.com/chromium/src/+/d66ff70d9c4f98de29ec8bdb8e939241599106ea

Patch Set 1 #

Patch Set 2 : Remove brackets #

Total comments: 3

Patch Set 3 : feedback #

Total comments: 4

Patch Set 4 : Use Common.moduleSettings value to in/exclude UA shadow dom #

Total comments: 2

Messages

Total messages: 21 (12 generated)
pfeldman
The code looks good, please look at the comments below. Also, could you plumb Common.moduleSetting('showUAShadowDOM').get() ...
3 years, 9 months ago (2017-03-22 01:11:03 UTC) #7
peleg
Thanks for reviewing! Revised per your comments. https://codereview.chromium.org/2763913002/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js File third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js (right): https://codereview.chromium.org/2763913002/diff/40001/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js#newcode1833 third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js:1833: this._agent.getNodeForLocation(x, y, ...
3 years, 9 months ago (2017-03-22 06:29:04 UTC) #9
pfeldman
https://codereview.chromium.org/2763913002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol-1.2.json File third_party/WebKit/Source/core/inspector/browser_protocol-1.2.json (right): https://codereview.chromium.org/2763913002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol-1.2.json#newcode2499 third_party/WebKit/Source/core/inspector/browser_protocol-1.2.json:2499: { "name": "includeUserAgentShadowDOM", "type": "boolean", "optional": true, "description": "False ...
3 years, 9 months ago (2017-03-22 17:32:46 UTC) #10
peleg
got it! submitted a new patch. https://codereview.chromium.org/2763913002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol-1.2.json File third_party/WebKit/Source/core/inspector/browser_protocol-1.2.json (right): https://codereview.chromium.org/2763913002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol-1.2.json#newcode2499 third_party/WebKit/Source/core/inspector/browser_protocol-1.2.json:2499: { "name": "includeUserAgentShadowDOM", ...
3 years, 9 months ago (2017-03-23 02:37:40 UTC) #11
pfeldman
lgtm https://codereview.chromium.org/2763913002/diff/60001/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js File third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js (right): https://codereview.chromium.org/2763913002/diff/60001/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js#newcode235 third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js:235: Common.moduleSetting('showUAShadowDOM').get(), callback.bind(this)); On 2017/03/23 02:37:40, peleg wrote: > ...
3 years, 9 months ago (2017-03-23 17:26:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2763913002/60001
3 years, 9 months ago (2017-03-23 20:33:10 UTC) #14
commit-bot: I haz the power
The author peleg3@gmail.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
3 years, 9 months ago (2017-03-23 20:33:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2763913002/60001
3 years, 9 months ago (2017-03-23 20:39:10 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 22:39:24 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/d66ff70d9c4f98de29ec8bdb8e93...

Powered by Google App Engine
This is Rietveld 408576698