refactor: use WeakMap instead of hidden V8 properties to store WebViewImpl (#29049)
This commit is contained in:
parent
de55bf8459
commit
49ef1fe342
5 changed files with 23 additions and 21 deletions
|
@ -27,7 +27,7 @@ export function webViewInit (contextIsolation: boolean, webviewTag: boolean, gue
|
|||
v8Util.setHiddenValue(window, 'web-view-impl', webViewImplModule);
|
||||
} else {
|
||||
const { setupWebView } = require('@electron/internal/renderer/web-view/web-view-element') as typeof webViewElement;
|
||||
setupWebView(v8Util, webViewImplModule);
|
||||
setupWebView(webViewImplModule);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue