Skip to content

Commit 8256e0d

Browse files
authored
fix: use the right scheme for new managed remote resources (microsoft#185897)
Fixes microsoft#185886
1 parent 25f01f5 commit 8256e0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/vs/code/electron-main/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class CodeApplication extends Disposable {
188188
//#region Request filtering
189189

190190
// Block all SVG requests from unsupported origins
191-
const supportedSvgSchemes = new Set([Schemas.file, Schemas.vscodeFileResource, Schemas.vscodeRemoteResource, 'devtools']);
191+
const supportedSvgSchemes = new Set([Schemas.file, Schemas.vscodeFileResource, Schemas.vscodeRemoteResource, Schemas.vscodeManagedRemoteResource, 'devtools']);
192192

193193
// But allow them if the are made from inside an webview
194194
const isSafeFrame = (requestFrame: WebFrameMain | undefined): boolean => {
@@ -632,7 +632,7 @@ export class CodeApplication extends Disposable {
632632
new NodeRemoteResourceRouter(),
633633
));
634634

635-
protocol.registerBufferProtocol(Schemas.vscodeRemoteResource, (request, callback) => {
635+
protocol.registerBufferProtocol(Schemas.vscodeManagedRemoteResource, (request, callback) => {
636636
const url = URI.parse(request.url);
637637
if (!url.authority.startsWith('window:')) {
638638
return callback(notFound());

src/vs/platform/remote/electron-sandbox/electronRemoteResourceLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class ElectronRemoteResourceLoader extends Disposable {
6464

6565
public getResourceUriProvider() {
6666
return (uri: URI) => uri.with({
67-
scheme: Schemas.vscodeRemoteResource,
67+
scheme: Schemas.vscodeManagedRemoteResource,
6868
authority: `window:${this.windowId}`,
6969
query: new URLSearchParams({ authority: uri.authority, scheme: uri.scheme }).toString(),
7070
});

0 commit comments

Comments
 (0)