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

Unified Diff: Source/core/dom/Document.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/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 528702de282e6db69f8ffa1c8e39d317ecd04218..1d1d80dc058727710579069fd73c2d5d762953f1 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -4864,6 +4864,11 @@ void Document::initContentSecurityPolicy(const ContentSecurityPolicyResponseHead
contentSecurityPolicy()->didReceiveHeaders(headers);
}
+void Document::initScriptEnabled()
+{
+ m_scriptEnabled = m_frame->loader().client()->allowScript(settings() && settings()->scriptEnabled());
+}
+
bool Document::allowInlineEventHandlers(Node* node, EventListener* listener, const String& contextURL, const WTF::OrdinalNumber& contextLine)
{
if (!contentSecurityPolicy()->allowInlineEventHandlers(contextURL, contextLine))

Powered by Google App Engine
This is Rietveld 408576698