提交 b3961def 编写于 作者: M Matt Bierner

Fix crash in webview while updating zoom when webcontent is potentially destroyed. Fixes #26509

上级 f6ab171a
......@@ -253,6 +253,10 @@ export default class Webview {
return;
}
window.webContents.getZoomFactor(factor => {
if (contents.isDestroyed()) {
return;
}
contents.setZoomFactor(factor);
const width = this.parent.clientWidth;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册