mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #785] Update WebPreferences's ContextIsolation default value to true #1291
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?
Original Pull Request: https://github.com/ElectronNET/Electron.NET/pull/785
State: closed
Merged: No
I've encountered the following error: "Error: contextBridge API can only be used when contextIsolation is enabled", even though I did enable
ContextIsolation.In #411, the same issue was reported, and the problem was traced down to the fact that the default value of
ContextIsolationwas set to the wrong value, which made that attribute un-editable.I then found out that the default value of
ContextIsolationwas changed from false to true since Electron 12, as noted here, so I fixed it.