diff --git a/lib/browser/api/browser-window.js b/lib/browser/api/browser-window.js index 521414fd01bab..ab8bd433abac3 100644 --- a/lib/browser/api/browser-window.js +++ b/lib/browser/api/browser-window.js @@ -33,7 +33,7 @@ BrowserWindow.prototype._init = function () { // Hide the auto-hide menu when webContents is focused. this.webContents.on('activate', () => { - if (process.platform !== 'darwin' && this.isMenuBarAutoHide() && this.isMenuBarVisible()) { + if (process.platform !== 'darwin' && this.autoHideMenuBar && this.isMenuBarVisible()) { this.setMenuBarVisibility(false) } }) diff --git a/lib/browser/guest-view-manager.js b/lib/browser/guest-view-manager.js index 1720b9b6027b2..c331d7f8b0946 100644 --- a/lib/browser/guest-view-manager.js +++ b/lib/browser/guest-view-manager.js @@ -200,7 +200,7 @@ const attachGuest = function (event, embedderFrameId, elementInstanceId, guestIn nodeIntegrationInSubFrames: params.nodeintegrationinsubframes != null ? params.nodeintegrationinsubframes : false, enableRemoteModule: params.enableremotemodule, plugins: params.plugins, - zoomFactor: embedder.getZoomFactor(), + zoomFactor: embedder.zoomFactor, disablePopups: !params.allowpopups, webSecurity: !params.disablewebsecurity, enableBlinkFeatures: params.blinkfeatures,