add webFrame to sandboxed renderer
This commit is contained in:
parent
bf07c5aebd
commit
eca7ff986c
4 changed files with 9 additions and 2 deletions
2
spec/fixtures/api/isolated-preload.js
vendored
2
spec/fixtures/api/isolated-preload.js
vendored
|
@ -6,6 +6,8 @@ const {ipcRenderer, webFrame} = require('electron')
|
|||
|
||||
window.foo = 3
|
||||
|
||||
webFrame.executeJavaScript('window.preloadExecuteJavaScriptProperty = 1234;')
|
||||
|
||||
window.addEventListener('message', (event) => {
|
||||
ipcRenderer.send('isolated-world', {
|
||||
preloadContext: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue