You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/electron-chrome-extensions/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,10 +77,11 @@ app.whenReady().then(() => {
77
77
78
78
constbrowserWindow=newBrowserWindow({
79
79
webPreferences: {
80
-
//Same session given to Extensions class
80
+
//Use same session given to Extensions class
81
81
session: browserSession,
82
-
//Recommended options for loading remote content
82
+
//Required for extension preload scripts
83
83
sandbox:true,
84
+
// Recommended for loading remote content
84
85
contextIsolation:true,
85
86
},
86
87
})
@@ -491,6 +492,7 @@ See [Electron's Notification tutorial](https://www.electronjs.org/docs/tutorial/
491
492
- Usage of Electron's `webRequest` API will prevent `chrome.webRequest` listeners from being called.
492
493
- Chrome extensions are not supported in non-persistent/incognito sessions.
493
494
-`chrome.webNavigation.onDOMContentLoaded` is only emitted for the top frame until [support for iframes](https://github.com/electron/electron/issues/27344) is added.
495
+
- Service worker preload scripts require Electron's sandbox to be enabled. This is the default behavior, but might be overridden by the `--no-sandbox` flag or `sandbox: false` in the `webPreferences` of a `BrowserWindow`. Check for the `--no-sandbox` flag using `ps -eaf | grep <appname>`.
0 commit comments