electron/lib/renderer
Samuel Maddock 42b7b25ac3 feat: support chrome extensions in sandboxed renderer (#16218)
* Add content script injector to sandboxed renderer

* Fix 'getRenderProcessPreferences' binding to the wrong object

* Pass getRenderProcessPreferences to content-scripts-injector

* Emit document-start and document-end  events in sandboxed renderer

* Use GetContext from RendererClientBase

* Prevent script context crash caused by lazily initialization

* Remove frame filtering logic for onExit callback

Since we're keeping track of which frames we've injected the bundle into, this logic is redundant.

* Add initial content script tests

* Add contextIsolation variants to content script tests

* Add set include

* Fix already loaded extension error

* Add tests for content scripts 'run_at' options

* Catch script injection eval error when CSP forbids it

This can occur in a rendered sandbox when a CSP is enabled. We'll need to switch to using isolated worlds to fix this.

* Fix content script tests not properly cleaning up extensions

* Fix lint and type errors
2019-03-07 16:00:28 -08:00
..
api refactor: use ipcRendererUtils.invoke / ipcMainUtils.handle for desktopCapturer.getSources() (#16619) 2019-03-07 15:31:25 -08:00
extensions chore: remove unused catch bindings (#16121) 2019-02-21 09:26:07 +00:00
web-view refactor: Port renderer/web-view to TypeScript (#17250) 2019-03-07 15:26:23 -08:00
callbacks-registry.js refactor: don't expose CallbacksRegistry as an internal module (#14389) 2018-08-31 11:29:00 -07:00
chrome-api.ts refactor: Port chrome-api to TypeScript (#17014) 2019-02-19 13:09:44 +00:00
content-scripts-injector.ts feat: support chrome extensions in sandboxed renderer (#16218) 2019-03-07 16:00:28 -08:00
init.ts feat: support chrome extensions in sandboxed renderer (#16218) 2019-03-07 16:00:28 -08:00
inspector.ts refactor: Port inspector to TypeScript (#16943) 2019-02-25 18:10:25 -08:00
ipc-renderer-internal-utils.ts refactor: merge ipcMainUtils.handle / handleSync (#17062) 2019-02-26 15:48:26 -08:00
ipc-renderer-internal.ts refactor: Port renderer-internal to TypeScript (#16939) 2019-02-14 17:24:25 -08:00
remote.ts refactor: Port getRemote to TypeScript (#16938) 2019-02-14 04:04:53 -10:00
security-warnings.ts chore: remove unused catch bindings (#16121) 2019-02-21 09:26:07 +00:00
web-frame-init.ts refactor: Split 'Event' docs/types into more specific Event types (#17038) 2019-02-19 09:24:19 +00:00
window-setup.ts chore: remove unused catch bindings (#16121) 2019-02-21 09:26:07 +00:00