@@ -71,7 +71,6 @@ webFrameInit();
7171const { hasSwitch, getSwitchValue } = process . _linkedBinding ( 'electron_common_command_line' ) ;
7272const { mainFrame } = process . _linkedBinding ( 'electron_renderer_web_frame' ) ;
7373
74- const contextIsolation = mainFrame . getWebPreference ( 'contextIsolation' ) ;
7574const nodeIntegration = mainFrame . getWebPreference ( 'nodeIntegration' ) ;
7675const webviewTag = mainFrame . getWebPreference ( 'webviewTag' ) ;
7776const isHiddenPage = mainFrame . getWebPreference ( 'hiddenPage' ) ;
@@ -109,7 +108,7 @@ switch (window.location.protocol) {
109108// Load webview tag implementation.
110109if ( process . isMainFrame ) {
111110 const { webViewInit } = require ( '@electron/internal/renderer/web-view/web-view-init' ) as typeof webViewInitModule ;
112- webViewInit ( contextIsolation , webviewTag , isWebView ) ;
111+ webViewInit ( webviewTag , isWebView ) ;
113112}
114113
115114if ( nodeIntegration ) {
@@ -166,7 +165,7 @@ if (nodeIntegration) {
166165} else {
167166 // Delete Node's symbols after the Environment has been loaded in a
168167 // non context-isolated environment
169- if ( ! contextIsolation ) {
168+ if ( ! process . contextIsolated ) {
170169 process . once ( 'loaded' , function ( ) {
171170 delete ( global as any ) . process ;
172171 delete ( global as any ) . Buffer ;
0 commit comments