Electron >=v13.0.0-beta.6 required to support sandboxed renderers
QiYuTechDev opened this issue · 10 comments
QiYuTechDev commented
BrowserWindow webPreferences
setting is:
{
"nodeIntegration": true,
"contextIsolation": false,
"sandbox": false,
"enableRemoteModule": true,
}
Demo code:
import {dialog} from "@electron/remote";
It seems the demo code works on electron 12.x but broken with 13.0.1 version.
nornagon commented
The module seems to be working OK on 13.0.1, as shown by this Fiddle: https://gist.github.com/0088222a5bd8e87d6e73fa006e4c18ff
What problem are you having?
QiYuTechDev commented
I build a demo app to reproduce the bug:
source code: https://github.com/QiYuTechDev/ElectronRemote
QiYuTechDev commented
It seem QiYuTechDev/ElectronRemote@b57f771 can fix this problem
spcBackToLife commented
It seem QiYuTechDev/ElectronRemote@b57f771 can fix this problem
I tried, it seems still has this problem = =.
amoscatelli commented
It still has this problem ...
geroale commented
Same issue here
illiterate-txp commented
I solve the problem with const {dialog} = require('electron').remote
OldManMeta commented
this is still happening
erickzhao commented
This might help.