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

Unified Diff: third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp

Issue 2657623005: WIP: Give developers an opt-in mechanism to block some parser-inserted scripts.
Patch Set: Refactor. Created 3 years, 11 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/html/HTMLIFrameElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
index 4eba7560097d4813c9a8c6250394a9db3c38c8f7..f17b1eb80785057bc6e8c3d40ef5da6db0194557 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
@@ -49,6 +49,7 @@ inline HTMLIFrameElement::HTMLIFrameElement(Document& document,
: HTMLFrameElementBase(iframeTag, document),
m_didLoadNonEmptyDocument(false),
m_createdByFragmentParser(createdByFragmentParser),
+ m_createdByDocumentWrite(document.isInDocumentWrite()),
m_sandbox(HTMLIFrameElementSandbox::create(this)),
m_referrerPolicy(ReferrerPolicyDefault) {}

Powered by Google App Engine
This is Rietveld 408576698