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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2869203002: Cleanup around LocalFrame initialization (Closed)
Patch Set: Use InitializeCoreFrame() in CreateProvisional() Created 3 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: third_party/WebKit/Source/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 92ea7c6200672063607bd4b8fecf85262199fb76..6333e2f0b252443d01501513cceafc62899979a9 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -263,6 +263,7 @@ DEFINE_TRACE(FrameLoader) {
}
void FrameLoader::Init() {
+ ScriptForbiddenScope forbid_scripts;
ResourceRequest initial_request(KURL(kParsedURLString, g_empty_string));
initial_request.SetRequestContext(WebURLRequest::kRequestContextInternal);
initial_request.SetFrameType(frame_->IsMainFrame()

Powered by Google App Engine
This is Rietveld 408576698