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

Issue 2837603002: Content API changes to improve DOM stitching in ThreatDetails code. (Closed)

Created:
3 years, 8 months ago by lpz
Modified:
3 years, 7 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, vakh+watch_chromium.org, droger+watchlist_chromium.org, grt+watch_chromium.org, sdefresne+watchlist_chromium.org, jam, timvolodine, darin-cc_chromium.org, blundell+watchlist_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Exposes some methods in the content layer to be able to 1) lookup routing_ids of FrameOwnerElements and 2) get FrameTreeNodeIDs for those frames across process boundaries. This is an effort to improve DOM stitching capability in SafeBrowsing code, which mimics some of what Accessibility does for DOM stitching. BUG=706823 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2837603002 Cr-Commit-Position: refs/heads/master@{#474642} Committed: https://chromium.googlesource.com/chromium/src/+/e83861a5ea91d04266a9ff8cd4f2e46a5d3e93be

Patch Set 1 #

Patch Set 2 : Remove unnecessary deps #

Total comments: 16

Patch Set 3 : Address comments and sync #

Patch Set 4 : Set output pointers correctly #

Total comments: 62

Patch Set 5 : Sync #

Patch Set 6 : Address feedback #

Total comments: 21

Patch Set 7 : Adddress comments, fix unittests #

Patch Set 8 : Sync and small unittest tweak #

Total comments: 10

Patch Set 9 : Address comments #

Total comments: 5

Patch Set 10 : Fix comment, move web_frame_util function #

Total comments: 2

Patch Set 11 : Sync #

Total comments: 2

Patch Set 12 : Use explicitly-sized int types in IPC definition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -173 lines) Patch
M chrome/browser/safe_browsing/threat_details_unittest.cc View 1 2 3 4 5 6 7 8 11 chunks +39 lines, -28 lines 0 comments Download
M components/safe_browsing/browser/threat_details.h View 1 2 3 4 5 6 7 8 9 5 chunks +30 lines, -36 lines 0 comments Download
M components/safe_browsing/browser/threat_details.cc View 1 2 3 4 5 6 9 chunks +52 lines, -64 lines 0 comments Download
M components/safe_browsing/common/safebrowsing_messages.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -3 lines 0 comments Download
M components/safe_browsing/renderer/threat_dom_details.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +33 lines, -17 lines 0 comments Download
M content/public/browser/render_frame_host.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -0 lines 0 comments Download
M content/public/renderer/render_frame.h View 1 2 3 4 5 11 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +16 lines, -6 lines 0 comments Download
M content/renderer/savable_resources.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/web_frame_utils.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/web_frame_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 89 (65 generated)
dmazzoni
https://codereview.chromium.org/2837603002/diff/20001/content/public/browser/render_frame_host.h File content/public/browser/render_frame_host.h (right): https://codereview.chromium.org/2837603002/diff/20001/content/public/browser/render_frame_host.h#newcode66 content/public/browser/render_frame_host.h:66: static int LookupOtherFrameTreeNodeId(int process_id, int routing_id); What does "Other" ...
3 years, 8 months ago (2017-04-21 15:48:48 UTC) #7
dmazzoni
https://codereview.chromium.org/2837603002/diff/20001/components/safe_browsing/renderer/threat_dom_details.cc File components/safe_browsing/renderer/threat_dom_details.cc (right): https://codereview.chromium.org/2837603002/diff/20001/components/safe_browsing/renderer/threat_dom_details.cc#newcode151 components/safe_browsing/renderer/threat_dom_details.cc:151: if (child_node.tag_name == "IFRAME" || child_node.tag_name == "FRAME") { ...
3 years, 7 months ago (2017-05-01 20:10:07 UTC) #10
lpz
Thanks Dominic for the feedback so far. +Charlie for a closer look as well +Nathan ...
3 years, 7 months ago (2017-05-02 19:36:25 UTC) #16
Charlie Reis
Thanks-- it's been a busy 2 days, but I'll try to look tomorrow!
3 years, 7 months ago (2017-05-03 23:29:21 UTC) #23
dmazzoni
https://codereview.chromium.org/2837603002/diff/20001/content/public/browser/render_frame_host.h File content/public/browser/render_frame_host.h (right): https://codereview.chromium.org/2837603002/diff/20001/content/public/browser/render_frame_host.h#newcode66 content/public/browser/render_frame_host.h:66: static int LookupOtherFrameTreeNodeId(int process_id, int routing_id); On 2017/05/02 19:36:24, ...
3 years, 7 months ago (2017-05-05 17:32:28 UTC) #24
Charlie Reis
Most of the notes here are just rephrasing for the comments, but I have a ...
3 years, 7 months ago (2017-05-05 21:03:08 UTC) #25
lpz
Thanks all for the insights https://codereview.chromium.org/2837603002/diff/20001/content/public/browser/render_frame_host.h File content/public/browser/render_frame_host.h (right): https://codereview.chromium.org/2837603002/diff/20001/content/public/browser/render_frame_host.h#newcode66 content/public/browser/render_frame_host.h:66: static int LookupOtherFrameTreeNodeId(int process_id, ...
3 years, 7 months ago (2017-05-10 14:21:10 UTC) #38
Charlie Reis
Thanks! Looking much better now. One concern about the public API and a few suggestions ...
3 years, 7 months ago (2017-05-10 22:17:50 UTC) #39
lpz
Thanks again, Charlie! +estark for safebrowsing_messages.h @nathan: this is ready for your attention now too ...
3 years, 7 months ago (2017-05-12 13:53:16 UTC) #47
Charlie Reis
Thanks! Basically looks good once we fix the DEPS problem. https://codereview.chromium.org/2837603002/diff/100001/components/safe_browsing/browser/threat_details.cc File components/safe_browsing/browser/threat_details.cc (right): https://codereview.chromium.org/2837603002/diff/100001/components/safe_browsing/browser/threat_details.cc#newcode505 ...
3 years, 7 months ago (2017-05-12 21:40:50 UTC) #50
lpz
https://codereview.chromium.org/2837603002/diff/140001/chrome/browser/safe_browsing/DEPS File chrome/browser/safe_browsing/DEPS (right): https://codereview.chromium.org/2837603002/diff/140001/chrome/browser/safe_browsing/DEPS#newcode4 chrome/browser/safe_browsing/DEPS:4: "+content/test/test_render_frame_host.h", On 2017/05/12 21:40:50, Charlie Reis wrote: > chrome/ ...
3 years, 7 months ago (2017-05-15 18:49:07 UTC) #52
Charlie Reis
Thanks! LGTM with the fixes below. https://codereview.chromium.org/2837603002/diff/160001/components/safe_browsing/browser/threat_details.h File components/safe_browsing/browser/threat_details.h (right): https://codereview.chromium.org/2837603002/diff/160001/components/safe_browsing/browser/threat_details.h#newcode167 components/safe_browsing/browser/threat_details.h:167: // frame's current ...
3 years, 7 months ago (2017-05-15 20:23:14 UTC) #58
lpz
https://codereview.chromium.org/2837603002/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2837603002/diff/20001/content/renderer/render_frame_impl.cc#newcode1065 content/renderer/render_frame_impl.cc:1065: int RenderFrame::GetRoutingIdForWebFrame(blink::WebFrame* web_frame) { On 2017/05/10 22:17:49, Charlie Reis ...
3 years, 7 months ago (2017-05-16 15:19:58 UTC) #62
dmazzoni
lgtm for accessibility changes
3 years, 7 months ago (2017-05-16 15:58:20 UTC) #63
Charlie Reis
Thanks! LGTM. https://codereview.chromium.org/2837603002/diff/160001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2837603002/diff/160001/content/renderer/render_frame_impl.cc#newcode1067 content/renderer/render_frame_impl.cc:1067: return GetRoutingIdForFrameOrProxy(web_frame); On 2017/05/16 15:19:57, lpz wrote: ...
3 years, 7 months ago (2017-05-16 16:34:08 UTC) #64
Nathan Parker
LGTM for safe_browsing https://codereview.chromium.org/2837603002/diff/180001/components/safe_browsing/browser/threat_details.h File components/safe_browsing/browser/threat_details.h (right): https://codereview.chromium.org/2837603002/diff/180001/components/safe_browsing/browser/threat_details.h#newcode216 components/safe_browsing/browser/threat_details.h:216: // associated with a parent Element ...
3 years, 7 months ago (2017-05-17 00:06:34 UTC) #65
lpz
https://codereview.chromium.org/2837603002/diff/180001/components/safe_browsing/browser/threat_details.h File components/safe_browsing/browser/threat_details.h (right): https://codereview.chromium.org/2837603002/diff/180001/components/safe_browsing/browser/threat_details.h#newcode216 components/safe_browsing/browser/threat_details.h:216: // associated with a parent Element in the parent ...
3 years, 7 months ago (2017-05-17 12:35:15 UTC) #70
estark
Sorry I haven't been following the discussion on this CL closely -- do you still ...
3 years, 7 months ago (2017-05-23 03:55:09 UTC) #71
lpz
On 2017/05/23 03:55:09, estark wrote: > Sorry I haven't been following the discussion on this ...
3 years, 7 months ago (2017-05-23 13:17:10 UTC) #72
estark
https://codereview.chromium.org/2837603002/diff/200001/components/safe_browsing/common/safebrowsing_messages.h File components/safe_browsing/common/safebrowsing_messages.h (right): https://codereview.chromium.org/2837603002/diff/200001/components/safe_browsing/common/safebrowsing_messages.h#newcode47 components/safe_browsing/common/safebrowsing_messages.h:47: IPC_STRUCT_MEMBER(int, child_frame_routing_id) I'm not sure it matters too much ...
3 years, 7 months ago (2017-05-24 00:42:35 UTC) #77
lpz
https://codereview.chromium.org/2837603002/diff/200001/components/safe_browsing/common/safebrowsing_messages.h File components/safe_browsing/common/safebrowsing_messages.h (right): https://codereview.chromium.org/2837603002/diff/200001/components/safe_browsing/common/safebrowsing_messages.h#newcode47 components/safe_browsing/common/safebrowsing_messages.h:47: IPC_STRUCT_MEMBER(int, child_frame_routing_id) On 2017/05/24 00:42:35, estark wrote: > I'm ...
3 years, 7 months ago (2017-05-24 14:31:40 UTC) #80
estark
safebrowsing_messages.h lgtm
3 years, 7 months ago (2017-05-25 03:23:16 UTC) #83
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/2837603002/220001
3 years, 7 months ago (2017-05-25 14:09:52 UTC) #86
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 14:14:39 UTC) #89
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/e83861a5ea91d04266a9ff8cd4f2...

Powered by Google App Engine
This is Rietveld 408576698