From 947238c9776dce41800d7bf532e28bab6762b6e8 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 7 Feb 2019 13:50:36 -0800 Subject: [PATCH] Allow svgs by default in webviews Fixes #68033 `allowSvgs` was already set as the default value after the webview was created. Due to an unrelated refactoring, the initial default value did not include `allowSvgs` --- .../workbench/contrib/webview/electron-browser/webviewEditor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vs/workbench/contrib/webview/electron-browser/webviewEditor.ts b/src/vs/workbench/contrib/webview/electron-browser/webviewEditor.ts index ed4bcbec2e4..db911b8e5a2 100644 --- a/src/vs/workbench/contrib/webview/electron-browser/webviewEditor.ts +++ b/src/vs/workbench/contrib/webview/electron-browser/webviewEditor.ts @@ -223,6 +223,7 @@ export class WebviewEditor extends BaseWebviewEditor { this._webview = this._instantiationService.createInstance(WebviewElement, this._partService.getContainer(Parts.EDITOR_PART), { + allowSvgs: true, useSameOriginForRoot: false, extensionLocation: input.extensionLocation }); -- GitLab