mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Creating a window with contextIsolation enabled does not enable contextIsolation in electron #995
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 @NimbusFox on GitHub (Nov 6, 2025).
.net 9
In WindowManager.cs lines 128-144. If the X and Y values are -1 it uses the global json serializer else it will create a new serializer.
When it uses the global json serializer it fails to enable the contextIsolation and possibly other items as well. Where as if the X or Y value is not -1 it uses a local json serializer which passes along all the values as their defaults if they have not been set a value yet which triggers the options to be set correctly
@FlorianRappl commented on GitHub (Nov 6, 2025):
Yeah sounds reasonable. Mind doing a PR?