docs: errors in isolated world are not dispatched (#23653)
This commit is contained in:
parent
7b55a70a36
commit
ce77e3327c
1 changed files with 5 additions and 1 deletions
|
@ -162,10 +162,14 @@ this limitation.
|
||||||
* `error` Error
|
* `error` Error
|
||||||
|
|
||||||
Returns `Promise<any>` - A promise that resolves with the result of the executed
|
Returns `Promise<any>` - A promise that resolves with the result of the executed
|
||||||
code or is rejected if execution throws or results in a rejected promise.
|
code or is rejected if execution could not start.
|
||||||
|
|
||||||
Works like `executeJavaScript` but evaluates `scripts` in an isolated context.
|
Works like `executeJavaScript` but evaluates `scripts` in an isolated context.
|
||||||
|
|
||||||
|
Note that when the execution of script fails, the returned promise will not
|
||||||
|
reject and the `result` would be `undefined`. This is because Chromium does not
|
||||||
|
dispatch errors of isolated worlds to foreign worlds.
|
||||||
|
|
||||||
### `webFrame.setIsolatedWorldInfo(worldId, info)`
|
### `webFrame.setIsolatedWorldInfo(worldId, info)`
|
||||||
* `worldId` Integer - The ID of the world to run the javascript in, `0` is the default world, `999` is the world used by Electrons `contextIsolation` feature. Chrome extensions reserve the range of IDs in `[1 << 20, 1 << 29)`. You can provide any integer here.
|
* `worldId` Integer - The ID of the world to run the javascript in, `0` is the default world, `999` is the world used by Electrons `contextIsolation` feature. Chrome extensions reserve the range of IDs in `[1 << 20, 1 << 29)`. You can provide any integer here.
|
||||||
* `info` Object
|
* `info` Object
|
||||||
|
|
Loading…
Reference in a new issue