electron/lib/renderer/api
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
..
exports
context-bridge.ts refactor: clean up webFrame implementation to use gin wrappers (#28497) 2021-04-12 16:35:18 -07:00
crash-reporter.ts chore: remove deprecated crashReporter APIs (#26695) 2020-11-26 22:07:40 +03:00
desktop-capturer.ts refactor: create IPC_MESSAGES enum for IPC message channels (#25694) 2020-10-14 00:11:06 +03:00
ipc-renderer.ts chore: remove unused sendToAll + related APIs (#26771) 2020-12-03 15:55:50 +09:00
module-list.ts chore: remove deprecated remote module (#25734) 2021-03-09 17:12:40 -08:00
native-image.ts refactor: create IPC_MESSAGES enum for IPC message channels (#25694) 2020-10-14 00:11:06 +03:00
web-frame.ts refactor: clean up webFrame implementation to use gin wrappers (#28497) 2021-04-12 16:35:18 -07:00