Skip to content

Commit a515ac4

Browse files
committed
refactor: move parent-origin into webview
1 parent 46b6672 commit a515ac4

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

patches/parent-origin.diff

-24
This file was deleted.

patches/webview.diff

+7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ That will test the hash change in pre/index.html
3030
Double-check the console to make sure there are no console errors for the webWorkerExtensionHostIframe
3131
which also requires a hash change.
3232

33+
parentOriginHash changes
34+
35+
This fixes webviews from not working properly due to a change upstream.
36+
Upstream added a check to ensure parent authority is encoded into the webview
37+
origin. Since our webview origin is the parent authority, we can bypass this
38+
check.
39+
3340
Index: code-server/lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts
3441
===================================================================
3542
--- code-server.orig/lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts

0 commit comments

Comments
 (0)