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

Unified Diff: third_party/WebKit/Source/core/testing/NullExecutionContext.cpp

Issue 2838153002: Make most of CSP code work with non-Document ExecutionContext (Closed)
Patch Set: . Created 3 years, 8 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/testing/NullExecutionContext.h ('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/testing/NullExecutionContext.cpp
diff --git a/third_party/WebKit/Source/core/testing/NullExecutionContext.cpp b/third_party/WebKit/Source/core/testing/NullExecutionContext.cpp
index edd4f3f913945e5bdbd40f456709ea42ddeffe89..84249c663a1fc873bd85609a1d8542ac798e9e81 100644
--- a/third_party/WebKit/Source/core/testing/NullExecutionContext.cpp
+++ b/third_party/WebKit/Source/core/testing/NullExecutionContext.cpp
@@ -48,7 +48,7 @@ bool NullExecutionContext::IsSecureContext(
void NullExecutionContext::SetUpSecurityContext() {
ContentSecurityPolicy* policy = ContentSecurityPolicy::Create();
- SecurityContext::SetSecurityOrigin(SecurityOrigin::Create(dummy_url_));
+ SecurityContext::SetSecurityOrigin(SecurityOrigin::Create(url_));
policy->BindToExecutionContext(this);
SecurityContext::SetContentSecurityPolicy(policy);
}
« no previous file with comments | « third_party/WebKit/Source/core/testing/NullExecutionContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698