From 8c8b084c2c189a81cd680d71c4fe395d2cec02f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Wed, 11 Dec 2024 17:03:18 +0100 Subject: [PATCH 1/2] fix: allow extension-file and data urls in extension host --- ...-allow-data-urls-in-extension-host-worker.patch | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/vscode-paches/0052-fix-allow-data-urls-in-extension-host-worker.patch b/vscode-paches/0052-fix-allow-data-urls-in-extension-host-worker.patch index f9a79d43..955619a7 100644 --- a/vscode-paches/0052-fix-allow-data-urls-in-extension-host-worker.patch +++ b/vscode-paches/0052-fix-allow-data-urls-in-extension-host-worker.patch @@ -4,19 +4,21 @@ Date: Thu, 17 Oct 2024 16:24:45 +0200 Subject: [PATCH] fix: allow data urls in extension host worker --- - .../extensions/worker/webWorkerExtensionHostIframe.html | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + .../extensions/worker/webWorkerExtensionHostIframe.html | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html b/src/vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html -index 88407e89f16..b5619cac823 100644 +index 88407e89f16..eff43dcde6c 100644 --- a/src/vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html +++ b/src/vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html -@@ -5,7 +5,7 @@ +@@ -4,8 +4,8 @@ + -+ connect-src 'self' data: https: wss: http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:*;"/> ++ script-src 'self' 'unsafe-eval' 'sha256-xM2KVDKIoeb8vVxk4ezEUsxdTZh5wFnKO3YmFhy9tkk=' data: extension-file: https: http://localhost:* blob:; ++ connect-src 'self' data: extension-file: https: wss: http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:*;"/>