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

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

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/HTMLIFrameElementTest.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp
index 2651ecb15fc222ea76df288f677cf198de81671c..0d579c1f3f286b1fb13320bd23425bf2db48d8ee 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp
@@ -12,7 +12,7 @@ namespace blink {
// Test setting via the Element attribute (HTML codepath).
TEST(HTMLIFrameElementTest, SetPermissionsAttribute) {
Document* document = Document::create();
- HTMLIFrameElement* iframe = HTMLIFrameElement::create(*document);
+ HTMLIFrameElement* iframe = HTMLIFrameElement::create(*document, false);
iframe->setAttribute(HTMLNames::permissionsAttr, "geolocation");
EXPECT_EQ("geolocation", iframe->permissions()->value());
@@ -23,7 +23,7 @@ TEST(HTMLIFrameElementTest, SetPermissionsAttribute) {
// Test setting via the DOMTokenList (JS codepath).
TEST(HTMLIFrameElementTest, SetPermissionsAttributeJS) {
Document* document = Document::create();
- HTMLIFrameElement* iframe = HTMLIFrameElement::create(*document);
+ HTMLIFrameElement* iframe = HTMLIFrameElement::create(*document, false);
iframe->permissions()->setValue("midi");
EXPECT_EQ("midi", iframe->getAttribute(HTMLNames::permissionsAttr));
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLTagNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698