Skip to content

Commit

Permalink
Switch entirely to iframe based webviews on desktop
Browse files Browse the repository at this point in the history
Fixes #83188
Part of #92164

Removes our usage of the electron `<webview>` tag
  • Loading branch information
mjbvz committed Jul 6, 2021
1 parent d0b9f5f commit 2222f3c
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 528 deletions.
1 change: 0 additions & 1 deletion build/gulpfile.vscode.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const vscodeResources = [
'out-build/vs/workbench/contrib/debug/**/*.json',
'out-build/vs/workbench/contrib/externalTerminal/**/*.scpt',
'out-build/vs/workbench/contrib/webview/browser/pre/*.js',
'out-build/vs/workbench/contrib/webview/electron-browser/pre/*.js',
'out-build/vs/**/markdown.css',
'out-build/vs/workbench/contrib/tasks/**/*.json',
'out-build/vs/platform/files/**/*.exe',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ export class WebviewProtocolProvider extends Disposable {
const uri = URI.parse(request.url);
const entry = WebviewProtocolProvider.validWebviewFilePaths.get(uri.path);
if (typeof entry === 'string') {
const relativeResourcePath = uri.path.startsWith('/electron-browser')
? `vs/workbench/contrib/webview/electron-browser/pre/${entry}`
: `vs/workbench/contrib/webview/browser/pre/${entry}`;

const relativeResourcePath = `vs/workbench/contrib/webview/browser/pre/${entry}`;
const url = FileAccess.asFileUri(relativeResourcePath, require);
return callback(decodeURIComponent(url.fsPath));
}
Expand Down

This file was deleted.

49 changes: 0 additions & 49 deletions src/vs/workbench/contrib/webview/electron-browser/pre/index.html

This file was deleted.

Loading

0 comments on commit 2222f3c

Please sign in to comment.