@@ -337,18 +337,17 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
337
337
more details.
338
338
* ` contextIsolation ` Boolean (optional) - Whether to run Electron APIs and
339
339
the specified ` preload ` script in a separate JavaScript context. Defaults
340
- to ` false ` . The context that the ` preload ` script runs in will still
341
- have full access to the ` document ` and ` window ` globals but it will use
342
- its own set of JavaScript builtins (` Array ` , ` Object ` , ` JSON ` , etc.)
343
- and will be isolated from any changes made to the global environment
344
- by the loaded page. The Electron API will only be available in the
345
- ` preload ` script and not the loaded page. This option should be used when
346
- loading potentially untrusted remote content to ensure the loaded content
347
- cannot tamper with the ` preload ` script and any Electron APIs being used.
348
- This option uses the same technique used by [ Chrome Content Scripts] [ chrome-content-scripts ] .
349
- You can access this context in the dev tools by selecting the
350
- 'Electron Isolated Context' entry in the combo box at the top of the
351
- Console tab.
340
+ to ` false ` . The context that the ` preload ` script runs in will only have
341
+ access to its own dedicated ` document ` and ` window ` globals, as well as
342
+ its own set of JavaScript builtins (` Array ` , ` Object ` , ` JSON ` , etc.),
343
+ which are all invisible to the loaded content. The Electron API will only
344
+ be available in the ` preload ` script and not the loaded page. This option
345
+ should be used when loading potentially untrusted remote content to ensure
346
+ the loaded content cannot tamper with the ` preload ` script and any
347
+ Electron APIs being used. This option uses the same technique used by
348
+ [ Chrome Content Scripts] [ chrome-content-scripts ] . You can access this
349
+ context in the dev tools by selecting the 'Electron Isolated Context'
350
+ entry in the combo box at the top of the Console tab.
352
351
* ` worldSafeExecuteJavaScript ` Boolean (optional) - If true, values returned from ` webFrame.executeJavaScript ` will be sanitized to ensure JS values
353
352
can't unsafely cross between worlds when using ` contextIsolation ` . The default
354
353
is ` false ` . In Electron 12, the default will be changed to ` true ` . _ Deprecated_
0 commit comments