electron/lib
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
..
asar fix: revert "refactor: mmap asar files (#24470)" (#28137) 2021-03-15 11:42:54 -07:00
browser fix: pass postData to new-window event (#28513) 2021-04-06 09:54:05 -07:00
common fix: pass postData to new-window event (#28513) 2021-04-06 09:54:05 -07:00
isolated_renderer chore: convert guest-view-manager.js to TypeScript (#25825) 2020-10-13 04:29:08 +03:00
renderer refactor: clean up webFrame implementation to use gin wrappers (#28497) 2021-04-12 16:35:18 -07:00
sandboxed_renderer refactor: clean up webFrame implementation to use gin wrappers (#28497) 2021-04-12 16:35:18 -07:00
worker build: tsify worker/init (#24497) 2020-07-09 20:32:37 -07:00