Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp |
| diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
| index 38269f0f9930117de9489404270140c54eed9224..b337fe1e4f0e8c88c19f1def876708590a62ccaa 100644 |
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
| @@ -538,6 +538,9 @@ LocalFrame* LocalFrame::localFrameRoot() { |
| } |
| bool LocalFrame::isCrossOriginSubframe() const { |
| + if (isMainFrame()) |
| + return false; |
| + DCHECK(securityContext()); |
|
dcheng
2016/10/14 23:40:30
Let's revert these 3 lines.
dgrogan
2016/10/18 22:11:45
Done.
|
| const SecurityOrigin* securityOrigin = securityContext()->getSecurityOrigin(); |
| Frame* top = tree().top(); |
| return top && |