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

Unified Diff: Source/core/loader/DocumentLoader.cpp

Issue 313173012: HTMLParser should use current value of scriptEnabled flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@WebKit-ADD
Patch Set: New approach Created 6 years, 6 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/core/loader/DocumentLoader.cpp
diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp
index 34d665b7cd49036a4a6d50078c79239fb5382c47..8018652a9f59b039f194124e8aba19b95d2455e6 100644
--- a/Source/core/loader/DocumentLoader.cpp
+++ b/Source/core/loader/DocumentLoader.cpp
@@ -501,6 +501,8 @@ void DocumentLoader::ensureWriter(const AtomicString& mimeType, const KURL& over
if (!overridingURL.isEmpty())
m_frame->document()->setBaseURLOverride(overridingURL);
+ m_frame->document()->initScriptEnabled();
abarth-chromium 2014/06/26 19:53:37 Can we move this call into Document::Document, rig
mmal 2014/06/27 19:39:16 I'm afraid we can't. Causes crash on WebSecurityOr
+
// Call receivedFirstData() exactly once per load.
frameLoader()->receivedFirstData();
m_frame->document()->maybeHandleHttpRefresh(m_response.httpHeaderField("Refresh"), Document::HttpRefreshFromHeader);
« Source/core/dom/ExecutionContext.cpp ('K') | « Source/core/dom/ExecutionContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698