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

Issue 1141283002: Replicate whether a frame is in a document or shadow tree. (Closed)

Created:
5 years, 7 months ago by dcheng
Modified:
5 years, 7 months ago
CC:
alexmos, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replicate whether a frame is in a document or shadow tree. This is needed for Blink to determine whether or not a frame can be accessed via the window indexed getters (window[num]) and named getters (window["name"]). Previously, Blink simply inspected the tree scope of the frame's owner element and checked that it matched the tree scope of the parent document. This breaks down in the case of remote frames, since the document and owner element are not available in the same process. Since this information is determined at frame creation and cannot change, Blink will rely on the embedder to forward this information through frame replication. This CL is mostly straightforward plumbing changes, but required updating lots of call sites and function signatures. BUG=473518 TBR=sky,tommycli,thestig,kalman,jrummell Committed: https://crrev.com/860817a9cd18ebf745517be58fd2ed0d937f8dcd Cr-Commit-Position: refs/heads/master@{#331059}

Patch Set 1 #

Patch Set 2 : blargh #

Total comments: 1

Patch Set 3 : Oops #

Total comments: 17

Patch Set 4 : Address comments #

Total comments: 3

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : Fix typo #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -88 lines) Patch
M components/html_viewer/ax_provider_impl_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/html_viewer/html_document.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/html_viewer/html_document.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/printing/renderer/print_web_view_helper.cc View 1 4 chunks +7 lines, -3 lines 2 comments Download
M content/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree.cc View 1 3 chunks +8 lines, -3 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree_unittest.cc View 1 8 chunks +64 lines, -37 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 5 chunks +14 lines, -9 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 4 chunks +7 lines, -7 lines 0 comments Download
M content/browser/frame_host/render_frame_message_filter.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_message_filter.cc View 4 chunks +4 lines, -2 lines 0 comments Download
M content/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 3 chunks +5 lines, -1 line 0 comments Download
M content/common/frame_replication_state.h View 1 2 3 3 chunks +15 lines, -1 line 0 comments Download
M content/common/frame_replication_state.cc View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M content/public/test/mock_render_thread.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/test/mock_render_thread.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 chunks +17 lines, -6 lines 0 comments Download
M content/renderer/render_frame_proxy.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 2 3 4 5 5 chunks +12 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M extensions/renderer/script_context_set_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M media/blink/buffered_data_source_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M media/blink/buffered_resource_loader_unittest.cc View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 29 (7 generated)
dcheng
I think I've fixed all the compile errors, but it's hard to say. I just ...
5 years, 7 months ago (2015-05-18 23:27:27 UTC) #2
dcheng
(Also, Blink-side patch is https://codereview.chromium.org/1141553006)
5 years, 7 months ago (2015-05-19 00:36:25 UTC) #3
nasko
Looks good overall. Just one comment about a TODO. https://codereview.chromium.org/1141283002/diff/40001/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/1141283002/diff/40001/content/renderer/render_frame_proxy.cc#newcode93 content/renderer/render_frame_proxy.cc:93: ...
5 years, 7 months ago (2015-05-19 16:02:47 UTC) #4
dcheng
https://codereview.chromium.org/1141283002/diff/40001/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/1141283002/diff/40001/content/renderer/render_frame_proxy.cc#newcode93 content/renderer/render_frame_proxy.cc:93: // frame proxy? On 2015/05/19 16:02:47, nasko wrote: > ...
5 years, 7 months ago (2015-05-19 16:09:55 UTC) #5
nasko
https://codereview.chromium.org/1141283002/diff/40001/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/1141283002/diff/40001/content/renderer/render_frame_proxy.cc#newcode93 content/renderer/render_frame_proxy.cc:93: // frame proxy? On 2015/05/19 16:09:55, dcheng wrote: > ...
5 years, 7 months ago (2015-05-19 16:14:16 UTC) #6
dcheng
https://codereview.chromium.org/1141283002/diff/40001/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/1141283002/diff/40001/content/renderer/render_frame_proxy.cc#newcode93 content/renderer/render_frame_proxy.cc:93: // frame proxy? On 2015/05/19 16:14:16, nasko wrote: > ...
5 years, 7 months ago (2015-05-19 16:18:49 UTC) #7
Charlie Reis
[+jam for DEPS] I'm a bit sad that the plumbing is so pervasive, since there ...
5 years, 7 months ago (2015-05-19 23:17:10 UTC) #9
dcheng
On 2015/05/19 at 23:17:10, creis wrote: > [+jam for DEPS] > > I'm a bit ...
5 years, 7 months ago (2015-05-20 00:09:30 UTC) #10
jam
https://codereview.chromium.org/1141283002/diff/40001/content/browser/DEPS File content/browser/DEPS (right): https://codereview.chromium.org/1141283002/diff/40001/content/browser/DEPS#newcode83 content/browser/DEPS:83: "+third_party/WebKit/public/web/WebTreeScopeType.h", On 2015/05/19 23:17:10, Charlie Reis wrote: > Please ...
5 years, 7 months ago (2015-05-20 15:05:17 UTC) #11
Charlie Reis
Thanks. Some more discussion below. I'd like to resolve some of these TODOs if we ...
5 years, 7 months ago (2015-05-20 21:38:40 UTC) #12
dcheng
On 2015/05/20 at 21:38:40, creis wrote: > On 2015/05/20 00:09:30, dcheng wrote: > > Outside ...
5 years, 7 months ago (2015-05-21 18:16:16 UTC) #13
nasko
LGTM
5 years, 7 months ago (2015-05-21 22:57:20 UTC) #14
Charlie Reis
Ok, LGTM with one nit. https://codereview.chromium.org/1141283002/diff/40001/content/browser/frame_host/frame_tree_unittest.cc File content/browser/frame_host/frame_tree_unittest.cc (right): https://codereview.chromium.org/1141283002/diff/40001/content/browser/frame_host/frame_tree_unittest.cc#newcode143 content/browser/frame_host/frame_tree_unittest.cc:143: frame_tree->AddFrame(root, process_id, 14, blink::WebTreeScopeType::Document, ...
5 years, 7 months ago (2015-05-21 23:18:18 UTC) #15
dcheng
https://codereview.chromium.org/1141283002/diff/80001/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/1141283002/diff/80001/content/renderer/render_frame_proxy.cc#newcode94 content/renderer/render_frame_proxy.cc:94: // createLocalChild(). We should update the Bilnk interface so ...
5 years, 7 months ago (2015-05-22 01:24:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141283002/100001
5 years, 7 months ago (2015-05-22 01:26:46 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/65383)
5 years, 7 months ago (2015-05-22 01:40:26 UTC) #21
dcheng
TBRing people for mechanical changes: sky@ for components/html_viewer tommycli@ for components/plugins thestig@ for components/printing kalman@ ...
5 years, 7 months ago (2015-05-22 01:56:34 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141283002/100001
5 years, 7 months ago (2015-05-22 01:58:24 UTC) #25
Lei Zhang
lgtm https://codereview.chromium.org/1141283002/diff/100001/components/printing/renderer/print_web_view_helper.cc File components/printing/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/1141283002/diff/100001/components/printing/renderer/print_web_view_helper.cc#newcode590 components/printing/renderer/print_web_view_helper.cc:590: virtual blink::WebFrame* createChildFrame( random comment: should these be ...
5 years, 7 months ago (2015-05-22 01:59:40 UTC) #26
dcheng
https://codereview.chromium.org/1141283002/diff/100001/components/printing/renderer/print_web_view_helper.cc File components/printing/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/1141283002/diff/100001/components/printing/renderer/print_web_view_helper.cc#newcode590 components/printing/renderer/print_web_view_helper.cc:590: virtual blink::WebFrame* createChildFrame( On 2015/05/22 01:59:40, Lei Zhang wrote: ...
5 years, 7 months ago (2015-05-22 02:01:00 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 7 months ago (2015-05-22 03:17:04 UTC) #28
commit-bot: I haz the power
5 years, 7 months ago (2015-05-22 03:17:59 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/860817a9cd18ebf745517be58fd2ed0d937f8dcd
Cr-Commit-Position: refs/heads/master@{#331059}

Powered by Google App Engine
This is Rietveld 408576698