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

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

Issue 2540983003: CSP: Dedicated workers always inherit policy. (Closed)
Patch Set: Rebase. Created 3 years, 9 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
Index: third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp
index 777b34fe58e6fe03df14cb5cf1d03f70e676c408..ade6bfe80569dacf8486ee94c9e9cd0af9884f93 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp
@@ -83,7 +83,6 @@ void InProcessWorkerMessagingProxy::startWorkerGlobalScope(
const KURL& scriptURL,
const String& userAgent,
const String& sourceCode,
- ContentSecurityPolicy* contentSecurityPolicy,
const String& referrerPolicy) {
DCHECK(isParentContextThread());
if (askedToTerminate()) {
@@ -95,9 +94,7 @@ void InProcessWorkerMessagingProxy::startWorkerGlobalScope(
Document* document = toDocument(getExecutionContext());
SecurityOrigin* starterOrigin = document->getSecurityOrigin();
- ContentSecurityPolicy* csp = contentSecurityPolicy
- ? contentSecurityPolicy
- : document->contentSecurityPolicy();
+ ContentSecurityPolicy* csp = document->contentSecurityPolicy();
DCHECK(csp);
WorkerThreadStartMode startMode =

Powered by Google App Engine
This is Rietveld 408576698