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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp

Issue 2401573003: CSP: Fix 'strict-dynamic' with multiple policies. (Closed)
Patch Set: Tests compile. Created 4 years, 2 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/loader/HttpEquiv.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/workers/WorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
index ff41d83ab56e9219871f47ccdcf3019e7d6e2295..cf35c3676c554d1a428c54a6a2c532d1a381219a 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
@@ -188,7 +188,8 @@ void WorkerGlobalScope::importScripts(const Vector<String>& urls,
SyntaxError, "The URL '" + urlString + "' is invalid.");
return;
}
- if (!contentSecurityPolicy()->allowScriptFromSource(url, AtomicString())) {
+ if (!contentSecurityPolicy()->allowScriptFromSource(url, AtomicString(),
+ NotParserInserted)) {
exceptionState.throwDOMException(
NetworkError,
"The script at '" + url.elidedString() + "' failed to load.");
« no previous file with comments | « third_party/WebKit/Source/core/loader/HttpEquiv.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698