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

Issue 2373023002: Make DOM.getChildNodes & DOM.getDocument optionally pierce iframe boundaries (Closed)

Created:
4 years, 2 months ago by alex clarke (OOO till 29th)
Modified:
4 years, 2 months ago
Reviewers:
dgozman, Sami, 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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make DOM.getChildNodes & DOM.getDocument optionally pierce iframe boundaries This means you can easily capture all the DOM nodes on a page with iframes with a single command, previously multiple calls to DOM.getChildNodes were required. BUG=546953 Committed: https://crrev.com/86b48bfeabfd2b8876efcd18f2f018c5d9a3e53a Cr-Commit-Position: refs/heads/master@{#425063}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix indent #

Patch Set 3 : Added a requestFrames parameter to fix the broken test #

Total comments: 2

Patch Set 4 : Export it under contentDocument #

Patch Set 5 : Per IM conversation, let DOM.getDocument optionally return the sub tree as well. #

Total comments: 4

Patch Set 6 : Plumbed it instead #

Patch Set 7 : Fix layout test #

Total comments: 4

Patch Set 8 : Nits #

Messages

Total messages: 52 (34 generated)
alex clarke (OOO till 29th)
4 years, 2 months ago (2016-09-27 13:41:54 UTC) #3
Sami
Nice, lgtm! https://codereview.chromium.org/2373023002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-requestChildNodes.html File third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-requestChildNodes.html (right): https://codereview.chromium.org/2373023002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-requestChildNodes.html#newcode13 third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-requestChildNodes.html:13: if (messageObject.hasOwnProperty("error")) Is this block indented right?
4 years, 2 months ago (2016-09-27 13:50:58 UTC) #5
alex clarke (OOO till 29th)
https://codereview.chromium.org/2373023002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-requestChildNodes.html File third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-requestChildNodes.html (right): https://codereview.chromium.org/2373023002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-requestChildNodes.html#newcode13 third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-requestChildNodes.html:13: if (messageObject.hasOwnProperty("error")) On 2016/09/27 13:50:58, Sami wrote: > Is ...
4 years, 2 months ago (2016-09-27 13:56:08 UTC) #6
pfeldman
https://codereview.chromium.org/2373023002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/2373023002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode1622 third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp:1622: children->addItem(buildObjectForNode(iframeDocument, depth, nodesMap)); Those are not the children, you ...
4 years, 2 months ago (2016-09-27 18:37:41 UTC) #14
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2373023002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/2373023002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode1622 third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp:1622: children->addItem(buildObjectForNode(iframeDocument, depth, nodesMap)); On 2016/09/27 18:37:41, pfeldman wrote: ...
4 years, 2 months ago (2016-09-28 14:30:00 UTC) #17
alex clarke (OOO till 29th)
ping :)
4 years, 2 months ago (2016-09-30 09:03:19 UTC) #22
alex clarke (OOO till 29th)
Pavel: Is this the right change or would adding optional depth & traverseFrames params to ...
4 years, 2 months ago (2016-09-30 10:40:25 UTC) #23
alex clarke (OOO till 29th)
PTAL
4 years, 2 months ago (2016-10-06 17:07:21 UTC) #26
alex clarke (OOO till 29th)
Looks like Pavel is busy, Dmitry would you mind taking a look?
4 years, 2 months ago (2016-10-07 10:00:48 UTC) #31
pfeldman
https://codereview.chromium.org/2373023002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/2373023002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode524 third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp:524: m_traverseFrames = traverseFrames.fromMaybe(false); You should plumb it, it is ...
4 years, 2 months ago (2016-10-07 19:35:13 UTC) #32
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2373023002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/2373023002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode524 third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp:524: m_traverseFrames = traverseFrames.fromMaybe(false); On 2016/10/07 19:35:12, pfeldman wrote: ...
4 years, 2 months ago (2016-10-11 12:05:13 UTC) #35
alex clarke (OOO till 29th)
ping :)
4 years, 2 months ago (2016-10-12 13:38:34 UTC) #39
pfeldman
lgtm % comment https://codereview.chromium.org/2373023002/diff/120001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html File third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html (right): https://codereview.chromium.org/2373023002/diff/120001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html#newcode50 third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html:50: messageObject.params.nodes[0].children[0].children[0].children[0].frameId = "???"; Could you replace ...
4 years, 2 months ago (2016-10-12 18:45:26 UTC) #43
alex clarke (OOO till 29th)
https://codereview.chromium.org/2373023002/diff/120001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html File third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html (right): https://codereview.chromium.org/2373023002/diff/120001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html#newcode50 third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html:50: messageObject.params.nodes[0].children[0].children[0].children[0].frameId = "???"; On 2016/10/12 18:45:26, pfeldman wrote: > ...
4 years, 2 months ago (2016-10-13 15:31:05 UTC) #44
alex clarke (OOO till 29th)
https://codereview.chromium.org/2373023002/diff/120001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html File third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html (right): https://codereview.chromium.org/2373023002/diff/120001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html#newcode50 third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-request-child-nodes-traverse-frames.html:50: messageObject.params.nodes[0].children[0].children[0].children[0].frameId = "???"; On 2016/10/12 18:45:26, pfeldman wrote: > ...
4 years, 2 months ago (2016-10-13 15:31:06 UTC) #45
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/2373023002/140001
4 years, 2 months ago (2016-10-13 15:31:37 UTC) #48
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-10-13 16:55:47 UTC) #50
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 16:57:42 UTC) #52
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/86b48bfeabfd2b8876efcd18f2f018c5d9a3e53a
Cr-Commit-Position: refs/heads/master@{#425063}

Powered by Google App Engine
This is Rietveld 408576698