mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
fix: add 'allow-forms' to sandbox attribute. (#87334)
Extensions like "mtxr.sqltools" using form to update configuration, this patch will help them to work with the VS Online Web Edition.
This commit is contained in:
@@ -61,7 +61,7 @@ export class IFrameWebview extends BaseWebview<HTMLIFrameElement> implements Web
|
||||
protected createElement(options: WebviewOptions) {
|
||||
const element = document.createElement('iframe');
|
||||
element.className = `webview ${options.customClasses || ''}`;
|
||||
element.sandbox.add('allow-scripts', 'allow-same-origin');
|
||||
element.sandbox.add('allow-scripts', 'allow-same-origin', 'allow-forms');
|
||||
element.setAttribute('src', `${this.externalEndpoint}/index.html?id=${this.id}`);
|
||||
element.style.border = 'none';
|
||||
element.style.width = '100%';
|
||||
|
||||
Reference in New Issue
Block a user