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

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

Issue 2784753003: CSP: Enable whitelisting of external JavaScript via hashes (Closed)
Patch Set: remove duplicate test 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/frame/csp/ContentSecurityPolicyTest.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 305eb1e0944ba491556582b475d33c79515f5026..fc6caa213011fe6d1364c15a5c36f5b9ec526b53 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
@@ -182,8 +182,8 @@ void WorkerGlobalScope::importScripts(const Vector<String>& urls,
SyntaxError, "The URL '" + urlString + "' is invalid.");
return;
}
- if (!contentSecurityPolicy()->allowScriptFromSource(url, AtomicString(),
- NotParserInserted)) {
+ if (!contentSecurityPolicy()->allowScriptFromSource(
+ url, AtomicString(), IntegrityMetadataSet(), NotParserInserted)) {
exceptionState.throwDOMException(
NetworkError,
"The script at '" + url.elidedString() + "' failed to load.");
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicyTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698