提交 709ab6e9 编写于 作者: M Matt Bierner

Enable contextIsolation for webview

上级 96b49f6f
......@@ -20,6 +20,7 @@ declare interface WebviewElement extends HTMLElement {
src: string;
autoSize: 'on';
preload: string;
contextIsolation: boolean;
send(channel: string, ...args: any[]);
openDevTools(): any;
......@@ -59,6 +60,7 @@ export default class Webview {
this._webview.style.outline = '0';
this._webview.style.opacity = '0';
this._webview.autoSize = 'on';
this._webview.contextIsolation = true;
// disable auxclick events (see https://developers.google.com/web/updates/2016/10/auxclick)
this._webview.setAttribute('disableblinkfeatures', 'Auxclick');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册