diff --git a/lib/browser/chrome-extension.js b/lib/browser/chrome-extension.js index da4504a6b7f6..5b6bd5fbe1c8 100644 --- a/lib/browser/chrome-extension.js +++ b/lib/browser/chrome-extension.js @@ -82,7 +82,7 @@ const removeBackgroundPages = function (manifest) { } // Dispatch tabs events. -const hookWindowForTabEvents = function (webContents) { +const hookWebContentsForTabEvents = function (webContents) { const tabId = webContents.id for (const page of objectValues(backgroundPages)) { page.webContents.sendToAll('CHROME_TABS_ONCREATED', tabId) @@ -225,7 +225,7 @@ const loadDevToolsExtensions = function (win, manifests) { webContents.on('web-contents-created', function (webContents) { if (webContents.getType() === 'remote') return - hookWindowForTabEvents(webContents) + hookWebContentsForTabEvents(webContents) webContents.on('devtools-opened', function () { loadDevToolsExtensions(webContents, objectValues(manifestMap)) })