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

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerBase.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/InProcessWorkerBase.cpp
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
index 57f7e4825ee5415601efb35c57d43339361682f0..71c85062625f5da255f859402819628a20386648 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
@@ -8,7 +8,6 @@
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptState.h"
#include "core/events/MessageEvent.h"
-#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/workers/InProcessWorkerMessagingProxy.h"
#include "core/workers/WorkerScriptLoader.h"
@@ -100,7 +99,6 @@ void InProcessWorkerBase::onFinished() {
m_contextProxy->startWorkerGlobalScope(
m_scriptLoader->url(), getExecutionContext()->userAgent(),
m_scriptLoader->script(),
- m_scriptLoader->releaseContentSecurityPolicy(),
m_scriptLoader->getReferrerPolicy());
probe::scriptImported(getExecutionContext(), m_scriptLoader->identifier(),
m_scriptLoader->script());

Powered by Google App Engine
This is Rietveld 408576698