1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public class WebPreferences
173
173
174
174
/// <summary>
175
175
/// Whether to run Electron APIs and the specified preload script in a separate
176
- /// JavaScript context. Defaults to false . The context that the preload script runs
176
+ /// JavaScript context. Defaults to true . The context that the preload script runs
177
177
/// in will still have full access to the document and window globals but it will
178
178
/// use its own set of JavaScript builtins (Array, Object, JSON, etc.) and will be
179
179
/// isolated from any changes made to the global environment by the loaded page.The
@@ -182,11 +182,10 @@ public class WebPreferences
182
182
/// content to ensure the loaded content cannot tamper with the preload script and
183
183
/// any Electron APIs being used. This option uses the same technique used by . You
184
184
/// can access this context in the dev tools by selecting the 'Electron Isolated
185
- /// Context' entry in the combo box at the top of the Console tab. This option is
186
- /// currently experimental and may change or be removed in future Electron releases.
185
+ /// Context' entry in the combo box at the top of the Console tab.
187
186
/// </summary>
188
- [ DefaultValue ( false ) ]
189
- public bool ContextIsolation { get ; set ; } = false ;
187
+ [ DefaultValue ( true ) ]
188
+ public bool ContextIsolation { get ; set ; } = true ;
190
189
191
190
/// <summary>
192
191
/// Whether to use native window.open(). Defaults to false. This option is currently experimental.
0 commit comments