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

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

Issue 2657263002: Experiment with blocking script inside fragment-parser-inserted `<iframe srcdoc>`.
Patch Set: Bitwise logic is hard. 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.h
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElement.h b/third_party/WebKit/Source/core/html/HTMLIFrameElement.h
index 51ae060faa6306b585b3fff35a19ac7bb79f37bc..4ac5c084e15475378c0416bf4431ce835e5a437f 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.h
@@ -41,17 +41,19 @@ class CORE_EXPORT HTMLIFrameElement final
USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement);
public:
- DECLARE_NODE_FACTORY(HTMLIFrameElement);
DECLARE_VIRTUAL_TRACE();
+
+ static HTMLIFrameElement* create(Document&, bool createdByFragmentParser);
~HTMLIFrameElement() override;
DOMTokenList* sandbox() const;
DOMTokenList* permissions() const;
+ bool createdByFragmentParser() const { return m_createdByFragmentParser; }
void sandboxValueWasSet();
void permissionsValueWasSet();
private:
- explicit HTMLIFrameElement(Document&);
+ HTMLIFrameElement(Document&, bool createdByFragmentParser);
void parseAttribute(const AttributeModificationParams&) override;
bool isPresentationAttribute(const QualifiedName&) const override;
@@ -88,6 +90,7 @@ class CORE_EXPORT HTMLIFrameElement final
bool m_didLoadNonEmptyDocument;
bool m_allowFullscreen;
bool m_allowPaymentRequest;
+ const bool m_createdByFragmentParser;
Member<HTMLIFrameElementSandbox> m_sandbox;
Member<HTMLIFrameElementPermissions> m_permissions;
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698