mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-27 02:37:26 +01:00
add vscode-coi query when loading webview contents
related to https://github.com/microsoft/vscode/issues/137884
This commit is contained in:
@@ -508,6 +508,10 @@ export class WebviewElement extends Disposable implements IWebview, WebviewFindD
|
||||
params.purpose = options.purpose;
|
||||
}
|
||||
|
||||
if (globalThis.crossOriginIsolated) {
|
||||
params['vscode-coi'] = '3'; /*COOP+COEP*/
|
||||
}
|
||||
|
||||
const queryString = new URLSearchParams(params).toString();
|
||||
|
||||
// Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1754872
|
||||
|
||||
Reference in New Issue
Block a user