chore: disable the remote module in devtools / chrome extension background scripts (#16866)
* cache isRemoteModuleEnabled * chore: disable the remote module in devtools / chrome extension background scripts
This commit is contained in:
parent
a3cdf46fb6
commit
d8ba1278d1
6 changed files with 20 additions and 17 deletions
|
@ -91,7 +91,8 @@ const startBackgroundPages = function (manifest) {
|
|||
const contents = webContents.create({
|
||||
partition: 'persist:__chrome_extension',
|
||||
isBackgroundPage: true,
|
||||
commandLineSwitches: ['--background-page']
|
||||
commandLineSwitches: ['--background-page'],
|
||||
enableRemoteModule: false
|
||||
})
|
||||
backgroundPages[manifest.extensionId] = { html: html, webContents: contents, name: name }
|
||||
contents.loadURL(url.format({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue