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

Issue 1132133009: Plumb whether or not a frame is in shadow DOM to the embedder. (Closed)

Created:
5 years, 7 months ago by dcheng
Modified:
5 years, 7 months ago
Reviewers:
hayato
CC:
dcheng, alexmos, blink-reviews, dglazkov+blink, dominicc (has gone to gerrit), gavinp+loader_chromium.org, Nate Chapin, kojii, mlamouri+watch-blink_chromium.org, site-isolation-reviews_chromium.org, tyoshino+watch_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Plumb whether or not a frame is in shadow DOM to the embedder. The shadow DOM spec states that a frame in a shadow tree should not appear in the Window object's indexed and named getters. Today, this check is done with TreeScope: however, a remote Window has no DOM tree, and thus, no TreeScope. As a result, these checks cannot currently be enforced on a remote Window. Since whether or not a frame is in a shadow tree cannot change without a frame detach and attach, this patch adds a bit to track what type of DOM tree a frame is in. Once the embedder is updated to replicate this bit on child frame creation and child frame mirroring, the code in FrameTree can be rewritten to use this state rather than using TreeScope. BUG=473518 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195450

Patch Set 1 #

Patch Set 2 : Revert FrameTree and add new file (how did it compile?) #

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -30 lines) Patch
M Source/core/frame/FrameClient.h View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/loader/EmptyClients.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/RemoteFrameClientImpl.h View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M Source/web/RemoteFrameClientImpl.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/WebFrame.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M Source/web/WebLocalFrameImpl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 3 chunks +12 lines, -5 lines 0 comments Download
M Source/web/WebRemoteFrameImpl.h View 3 chunks +5 lines, -1 line 0 comments Download
M Source/web/WebRemoteFrameImpl.cpp View 7 chunks +35 lines, -12 lines 0 comments Download
M Source/web/tests/FrameTestHelpers.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/web/tests/WebViewTest.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M public/web/WebFrame.h View 4 chunks +7 lines, -1 line 0 comments Download
M public/web/WebFrameClient.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M public/web/WebLocalFrame.h View 3 chunks +6 lines, -0 lines 0 comments Download
M public/web/WebRemoteFrame.h View 2 chunks +13 lines, -1 line 0 comments Download
A public/web/WebTreeScopeType.h View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
dcheng
hayato@, mind taking a look? Based on kojii@'s observations at the Shadow DOM session at ...
5 years, 7 months ago (2015-05-18 03:14:43 UTC) #2
dcheng
Also, an initial Chrome-side patch is at https://codereview.chromium.org/1141283002, though I need to run some design ...
5 years, 7 months ago (2015-05-18 03:15:25 UTC) #3
hayato
LGTM https://codereview.chromium.org/1132133009/diff/40001/Source/web/RemoteFrameClientImpl.h File Source/web/RemoteFrameClientImpl.h (right): https://codereview.chromium.org/1132133009/diff/40001/Source/web/RemoteFrameClientImpl.h#newcode19 Source/web/RemoteFrameClientImpl.h:19: Remove this empty line? The comment L17 applies ...
5 years, 7 months ago (2015-05-18 05:08:51 UTC) #4
dcheng
https://codereview.chromium.org/1132133009/diff/40001/Source/web/RemoteFrameClientImpl.h File Source/web/RemoteFrameClientImpl.h (right): https://codereview.chromium.org/1132133009/diff/40001/Source/web/RemoteFrameClientImpl.h#newcode19 Source/web/RemoteFrameClientImpl.h:19: On 2015/05/18 05:08:50, hayato wrote: > Remove this empty ...
5 years, 7 months ago (2015-05-18 05:19:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1132133009/60001
5 years, 7 months ago (2015-05-18 05:19:37 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 06:37:06 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195450

Powered by Google App Engine
This is Rietveld 408576698