From f39c19596e1ab2acaad5c65396148ab0efb917d1 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Fri, 1 Feb 2019 21:43:31 +0100 Subject: [PATCH] sandbox background scripts --- lib/browser/chrome-extension.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/browser/chrome-extension.js b/lib/browser/chrome-extension.js index 60b1b714b66fa..4fcd4ed1acf5c 100644 --- a/lib/browser/chrome-extension.js +++ b/lib/browser/chrome-extension.js @@ -91,7 +91,9 @@ const startBackgroundPages = function (manifest) { const contents = webContents.create({ partition: 'persist:__chrome_extension', isBackgroundPage: true, - commandLineSwitches: ['--background-page'] + commandLineSwitches: ['--background-page'], + enableRemoteModule: false, + sandbox: true }) backgroundPages[manifest.extensionId] = { html: html, webContents: contents, name: name } contents.loadURL(url.format({