37db307153
* chore: bump chromium in DEPS to 461ecae368fd0832f18e0b13e61f3561d83f0031 * update patches * update patches * Remove both vs browser/child split in content gn files. https://chromium-review.googlesource.com/c/chromium/src/+/2157965 * chore: bump chromium in DEPS to 7ff3897f3104563763ef26ad940d4e988d7245dd * update patches * update patches * Add ElectronKioskDelegate for extensions https://chromium-review.googlesource.com/c/chromium/src/+/2159760 Co-authored-by: John Kleinschmidt <jkleinsc@github.com> Co-authored-by: Electron Bot <anonymous@electronjs.org>
19 lines
1.2 KiB
Diff
19 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: deepak1556 <hop2deep@gmail.com>
|
|
Date: Thu, 20 Sep 2018 17:47:47 -0700
|
|
Subject: blink-worker-enable-csp-in-file-scheme.patch
|
|
|
|
This allows file:// URLs in workers to have a CSP.
|
|
|
|
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
|
|
index dc1858e41ce77fcb3cd9f828cc70ef9e09a23d15..8e1ffef4b630b4981cd37bd669b1187240bca280 100644
|
|
--- a/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc
|
|
+++ b/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc
|
|
@@ -323,7 +323,6 @@ void WorkerClassicScriptLoader::ProcessContentSecurityPolicy(
|
|
// document (which is implemented in WorkerMessagingProxy, and
|
|
// m_contentSecurityPolicy should be left as nullptr to inherit the policy).
|
|
if (!response.CurrentRequestUrl().ProtocolIs("blob") &&
|
|
- !response.CurrentRequestUrl().ProtocolIs("file") &&
|
|
!response.CurrentRequestUrl().ProtocolIs("filesystem")) {
|
|
content_security_policy_ = MakeGarbageCollected<ContentSecurityPolicy>();
|
|
content_security_policy_->SetOverrideURLForSelf(
|