2018-09-14 05:02:16 +00:00
|
|
|
diff --git a/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc b/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc
|
2018-09-14 18:03:43 +00:00
|
|
|
index 4b47f551f366..227c58a5629d 100644
|
2018-09-14 05:02:16 +00:00
|
|
|
--- a/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc
|
|
|
|
+++ b/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc
|
2018-09-14 18:03:43 +00:00
|
|
|
@@ -246,7 +246,6 @@ void WorkerClassicScriptLoader::ProcessContentSecurityPolicy(
|
2018-09-14 05:02:16 +00:00
|
|
|
// document (which is implemented in WorkerMessagingProxy, and
|
|
|
|
// m_contentSecurityPolicy should be left as nullptr to inherit the policy).
|
|
|
|
if (!response.Url().ProtocolIs("blob") &&
|
|
|
|
- !response.Url().ProtocolIs("file") &&
|
|
|
|
!response.Url().ProtocolIs("filesystem")) {
|
|
|
|
content_security_policy_ = ContentSecurityPolicy::Create();
|
|
|
|
content_security_policy_->SetOverrideURLForSelf(response.Url());
|