|
|
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
Total comments: 4
|
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
|
Total messages: 9 (3 generated)
|