From 8f7a385f948447156a9fd544c569578d5ffa589e Mon Sep 17 00:00:00 2001 From: Jeremy Rose Date: Mon, 17 May 2021 15:16:54 -0700 Subject: [PATCH] chore: remove blink-worker-enable-csp-in-file-scheme.patch (#29136) --- patches/chromium/.patches | 1 - ...ink-worker-enable-csp-in-file-scheme.patch | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 patches/chromium/blink-worker-enable-csp-in-file-scheme.patch diff --git a/patches/chromium/.patches b/patches/chromium/.patches index 40231ea458a7..8271c33bb04d 100644 --- a/patches/chromium/.patches +++ b/patches/chromium/.patches @@ -13,7 +13,6 @@ render_widget_host_view_mac.patch thread_capabilities.patch webview_cross_drag.patch gin_enable_disable_v8_platform.patch -blink-worker-enable-csp-in-file-scheme.patch disable-redraw-lock.patch enable_reset_aspect_ratio.patch v8_context_snapshot_generator.patch diff --git a/patches/chromium/blink-worker-enable-csp-in-file-scheme.patch b/patches/chromium/blink-worker-enable-csp-in-file-scheme.patch deleted file mode 100644 index 06a28c8b7e45..000000000000 --- a/patches/chromium/blink-worker-enable-csp-in-file-scheme.patch +++ /dev/null @@ -1,19 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: deepak1556 -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 405467d3a4ddfa05532ab424d35883ece1c4f13d..cc634245d44bc8b1caf645766be40905f9c9f5d3 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 -@@ -365,7 +365,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(); - content_security_policy_->AddPolicies(ParseContentSecurityPolicyHeaders(