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 e1aff2aec72b87ffba4af9a81c36b36f0783a39a..c1d9740930e45d26724e5cf039edf7eec8c0d54e 100644 |
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp |
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp |
@@ -240,7 +240,7 @@ void WorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionState |
exceptionState.throwDOMException(SyntaxError, "The URL '" + urlString + "' is invalid."); |
return; |
} |
- if (!contentSecurityPolicy()->allowScriptFromSource(url)) { |
+ if (!contentSecurityPolicy()->allowScriptFromSource(url, AtomicString())) { |
exceptionState.throwDOMException(NetworkError, "The script at '" + url.elidedString() + "' failed to load."); |
return; |
} |