electron/lib/renderer
Samuel Attard 6df2680cb6
refactor: clean up webFrame implementation to use gin wrappers (#28497)
* refactor: clean up webFrame implementation to use gin wrappers

The previous implementation of webFrame in the renderer process leaked
sub-frame contexts and global objects across the context boundaries thus
making it possible for apps to either maliciously or accidentally
violate the contextIsolation boundary.

This re-implementation binds all methods in native code directly to
content::RenderFrame instances instead of relying on JS to provide a
"window" with every method request.  This is much more consistent with
the rest of the Electron codebase and is substantially safer.

* chore: un-re-order for ease of review

* chore: pass isolate around instead of ErrorThrower

* chore: fix rebase typo

* chore: remove unused variables
2021-04-12 16:35:18 -07:00
..
api refactor: clean up webFrame implementation to use gin wrappers (#28497) 2021-04-12 16:35:18 -07:00
web-view refactor: use URL API (#28583) 2021-04-09 14:22:18 -07:00
init.ts refactor: clean up webFrame implementation to use gin wrappers (#28497) 2021-04-12 16:35:18 -07:00
inspector.ts refactor: create IPC_MESSAGES enum for IPC message channels (#25694) 2020-10-14 00:11:06 +03:00
ipc-renderer-internal-utils.ts refactor: only allow internal messages from the main process (#27676) 2021-02-09 17:12:26 -08:00
ipc-renderer-internal.ts refactor: only allow internal messages from the main process (#27676) 2021-02-09 17:12:26 -08:00
security-warnings.ts chore: remove deprecated worldSafeExecuteJavaScript option (#28456) 2021-04-08 12:03:57 -04:00
web-frame-init.ts chore: remove deprecated worldSafeExecuteJavaScript option (#28456) 2021-04-08 12:03:57 -04:00
window-setup.ts refactor: only allow internal messages from the main process (#27676) 2021-02-09 17:12:26 -08:00