@@ -25,6 +25,11 @@ Make sure to update the hash. To do so:
25252. open any webview (i.e. preview Markdown)
26263. see error in console and copy hash
2727
28+ That will test the hash change in pre/index.html
29+
30+ Double-check the console to make sure there are no console errors for the webWorkerExtensionHostIframe
31+ which also requires a hash change.
32+
2833Index: code-server/lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts
2934===================================================================
3035--- code-server.orig/lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts
@@ -54,6 +59,15 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index
5459===================================================================
5560--- code-server.orig/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index.html
5661+++ code-server/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index.html
62+ @@ -5,7 +5,7 @@
63+ <meta charset="UTF-8">
64+
65+ <meta http-equiv="Content-Security-Policy"
66+ - content="default-src 'none'; script-src 'sha256-wwaDxsm1+SKIUb5YJXiZlYMyV7QPB8+zd6HPcTjigZs=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
67+ + content="default-src 'none'; script-src 'sha256-IZkGO4jZeUn7pzM6pBZCZc9bUYm8oVNV3z8zEa8gxlk=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
68+
69+ <!-- Disable pinch zooming -->
70+ <meta name="viewport"
5771@@ -331,6 +331,12 @@
5872
5973 const hostname = location.hostname;
@@ -93,7 +107,7 @@ Index: code-server/lib/vscode/src/vs/workbench/services/extensions/worker/webWor
93107 default-src 'none';
94108 child-src 'self' data: blob:;
95109- script-src 'self' 'unsafe-eval' 'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' https:;
96- + script-src 'self' 'unsafe-eval' 'sha256-wwaDxsm1+SKIUb5YJXiZlYMyV7QPB8+zd6HPcTjigZs =' https:;
110+ + script-src 'self' 'unsafe-eval' 'sha256-TkIM/TmudlFEe0ZRp0ptvN54LClwk30Rql4ZPE0hm/I =' https:;
97111 connect-src 'self' https: wss: http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:*;"/>
98112 </head>
99113 <body>
0 commit comments