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

Unified Diff: Source/web/WebEmbeddedWorkerImpl.cpp

Issue 1141553006: Update Blink to use the tree scope info on WebFrame for scoping checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/WebEmbeddedWorkerImpl.cpp
diff --git a/Source/web/WebEmbeddedWorkerImpl.cpp b/Source/web/WebEmbeddedWorkerImpl.cpp
index b3f8983ad16c0e81d37b01205dab46428a261d3a..22cf98391782f907c28e78ca38693f354c4c7125 100644
--- a/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -300,7 +300,7 @@ void WebEmbeddedWorkerImpl::prepareShadowPageForLoader()
settings->setStrictMixedContentChecking(true);
settings->setAllowDisplayOfInsecureContent(false);
settings->setAllowRunningOfInsecureContent(false);
- m_mainFrame = toWebLocalFrameImpl(WebLocalFrame::create(this));
+ m_mainFrame = toWebLocalFrameImpl(WebLocalFrame::create(WebTreeScopeType::Document, this));
m_webView->setMainFrame(m_mainFrame);
m_mainFrame->setDevToolsAgentClient(this);

Powered by Google App Engine
This is Rietveld 408576698