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

Unified Diff: third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp

Issue 2699663002: CSP: 'self' should work inside sandboxes. (Closed)
Patch Set: Test + Formatting Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp b/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp
index 643f57dd3fbf61a9f398ecd2aa1ea709691d3d65..0a596c56c3c689dbd71b096007802c8f43342b76 100644
--- a/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp
@@ -33,6 +33,7 @@ class SourceListDirectiveTest : public ::testing::Test {
KURL secureURL(ParsedURLString, "https://example.test/image.png");
RefPtr<SecurityOrigin> secureOrigin(SecurityOrigin::create(secureURL));
document = Document::create();
+ document->setURL(secureURL);
document->setSecurityOrigin(secureOrigin);
csp->bindToExecutionContext(document.get());
}
@@ -41,6 +42,7 @@ class SourceListDirectiveTest : public ::testing::Test {
KURL secureURL(ParsedURLString, origin);
RefPtr<SecurityOrigin> secureOrigin(SecurityOrigin::create(secureURL));
Document* document = Document::create();
+ document->setURL(secureURL);
document->setSecurityOrigin(secureOrigin);
ContentSecurityPolicy* csp = ContentSecurityPolicy::create();
csp->bindToExecutionContext(document);
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698