mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
ElectronNET.API.Entities.WebPreferences.ContextIsolation [DefaultValue(true)] #498
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @freosc on GitHub (May 21, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
I tested using Electron.net API and CLI 8.31.2
ElectronJS lists the WebPreferences.ContextIsolation default value as false ([https://www.electronjs.org/docs/api/browser-window]).
ElectronNet API decorates the WebPreferences.ContextIsolation property with [DefaultValue(true)] which results in not setting this value in WindowManager.CreateWindowAsync when serializing "options" to a Json object.
This is my ElectronBootstrap code:
doing so, results in this error in the browser:
When I remove the [DefaultValue(true)] decorator of the ContextIsolation property in the ElectronNet.Api, it seems to work as expected.
@GregorBiswanger commented on GitHub (May 21, 2020):
Fixed with the Electron.NET 8.31.3