提交 f7f063bf 编写于 作者: R Rachel Macfarlane 提交者: Matt Bierner

Workaround for webview focus visibility issue (#66070)

上级 9d2787e4
......@@ -288,6 +288,10 @@ export class WebviewElement extends Disposable {
}));
this._register(addDisposableListener(this._webview, 'dom-ready', () => {
this.layout();
// Workaround for https://github.com/electron/electron/issues/14474
this._webview.blur();
this._webview.focus();
}));
this._register(addDisposableListener(this._webview, 'crashed', () => {
console.error('embedded page crashed');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册