electron/docs/api
Samuel Maddock f943db7ad5 feat: Add content script world isolation (#17032)
* Execute content script in isolated world

* Inject script into newly created extension worlds

* Create new content_script_bundle for extension scripts

* Initialize chrome API in content script bundle

* Define Chrome extension isolated world ID range

1 << 20 was chosen as it provides a sufficiently large range of IDs for extensions, but also provides a large enough buffer for any user worlds in [1000, 1 << 20).

Ultimately this range can be changed if any user application raises it as an issue.

* Insert content script CSS into document

This now avoids a script wrapper to inject the style sheet. This closely matches the code used by chromium in `ScriptInjection::InjectCss`.

* Pass extension ID to isolated world via v8 private
2019-03-11 16:27:57 -07:00
..
structures feat: show user gesture type in click event (#16954) 2019-02-20 12:20:24 +00:00
accelerator.md feat: add support for scroll lock accelerator (#16873) 2019-02-11 09:13:13 -10:00
app.md feat: add global renderer-process-crashed event (#17315) 2019-03-11 16:17:24 -07:00
auto-updater.md docs: clarify default auto-updater installation behavior (#12783) 2018-07-25 08:33:53 +10:00
breaking-changes.md feat: Add new powerMonitor synchronous API (#17144) 2019-02-27 15:54:01 -05:00
browser-view.md feat: flexible autoresize for BrowserViews (#16184) 2019-01-31 11:07:19 +09:00
browser-window-proxy.md updates to the docs 2017-07-24 10:29:45 +02:00
browser-window.md feat: add 'disableHtmlFullscreenWindowResize' option to webPreferences (#17203) 2019-03-07 15:29:37 -08:00
chrome-command-line-switches.md chore: update to standard 12 2018-09-14 14:57:01 +10:00
client-request.md feat: add getUploadProgress API to the net API (#13783) 2018-07-27 07:15:48 -07:00
clipboard.md feat: add webPreferences.enableRemoteModule option (#13028) 2018-10-13 20:50:07 +03:00
content-tracing.md feat: promisify contentTracing.getTraceBufferUsage() (#16600) 2019-02-13 13:24:57 -08:00
cookies.md feat: promisify cookies api (#16464) 2019-01-25 12:11:35 -06:00
crash-reporter.md docs: reorder crashReporter notes to make more sense (#16825) 2019-02-08 13:26:59 -08:00
debugger.md feat: promisify debugger.sendCommand() (#16861) 2019-02-13 07:23:53 -10:00
desktop-capturer.md feat: disable fetching thumbnails if thumbnailSize is 0 (#14906) 2019-02-13 10:27:42 -08:00
dialog.md feat: promisify dialog.showSaveDialog() (#17054) 2019-03-05 13:48:20 -08:00
download-item.md feat: add methods to allow customization of save dialog during will-download event (#15497) 2018-11-08 10:51:06 -04:00
environment-variables.md refactor: remove hardcoded google api key (#15478) 2018-10-31 07:49:44 -07:00
file-object.md docs: es6ify 'Breaking Changes' and 'File' API pages (#15507) 2018-12-05 23:14:52 +11:00
frameless-window.md fix: incorrect view ordering for customButtonsOnHover (#15564) 2018-12-10 11:05:30 -08:00
global-shortcut.md chore: move ts-smoke tests to core (#16930) 2019-02-13 15:24:28 -08:00
in-app-purchase.md docs: fix the type information in in-app-purchase 2018-05-03 09:34:21 -07:00
incoming-message.md updates to the docs 2017-07-24 10:29:45 +02:00
ipc-main.md refactor: Split 'Event' docs/types into more specific Event types (#17038) 2019-02-19 09:24:19 +00:00
ipc-renderer.md refactor: Split 'Event' docs/types into more specific Event types (#17038) 2019-02-19 09:24:19 +00:00
locales.md Use actual Chromium l10n_util list in locales.md 2017-05-01 17:15:37 -04:00
menu-item.md feat: allow MenuItems to work optionally when hidden (#16853) 2019-02-28 17:00:54 +00:00
menu.md docs: Remove redundant 'Instance Events' Headline (#16865) 2019-02-15 08:29:33 -10:00
native-image.md chore: update to standard 12 2018-09-14 14:57:01 +10:00
net-log.md feat: promisify netLog.stopLogging (#16862) 2019-02-19 10:48:27 +00:00
net.md chore: update to standard 12 2018-09-14 14:57:01 +10:00
notification.md Remove more words (#12852) 2018-05-08 00:16:09 -05:00
power-monitor.md feat: Add new powerMonitor synchronous API (#17144) 2019-02-27 15:54:01 -05:00
power-save-blocker.md chore: update to standard 12 2018-09-14 14:57:01 +10:00
process.md feat: add process.getSystemVersion() (#16599) 2019-02-18 12:59:48 +00:00
promisification.md feat: promisify session.clearAuthCache() (#17259) 2019-03-08 18:41:42 -08:00
protocol.md Fix typo in registerSchemesAsPrivileged reference (#17214) 2019-03-05 09:20:52 -08:00
remote.md feat: add webPreferences.enableRemoteModule option (#13028) 2018-10-13 20:50:07 +03:00
sandbox-option.md feat: enable mixed-sandbox mode by default (#15894) 2019-01-22 10:44:28 -08:00
screen.md chore: remove deprecated modules internally using remote.require in sandboxed renderer context (#15957) 2019-01-24 10:53:52 -08:00
session.md feat: promisify session.clearAuthCache() (#17259) 2019-03-08 18:41:42 -08:00
shell.md refactor: make shell.ShowItemInFolder asynchronous (#17121) 2019-02-27 12:58:23 +00:00
synopsis.md chore: update to standard 12 2018-09-14 14:57:01 +10:00
system-preferences.md feat: add Touch ID authentication support for macOS (#16707) 2019-02-13 18:36:28 -08:00
touch-bar-button.md 📝 Fix dead urls 2018-04-09 17:58:10 -03:00
touch-bar-color-picker.md 📝 Fix dead urls 2018-04-09 17:58:10 -03:00
touch-bar-group.md 📝 Fix dead urls 2018-04-09 17:58:10 -03:00
touch-bar-label.md 📝 Fix dead urls 2018-04-09 17:58:10 -03:00
touch-bar-popover.md 📝 Fix dead urls 2018-04-09 17:58:10 -03:00
touch-bar-scrubber.md 📝 Fix dead urls 2018-04-09 17:58:10 -03:00
touch-bar-segmented-control.md 📝 Fix dead urls 2018-04-09 17:58:10 -03:00
touch-bar-slider.md 📝 Fix dead urls 2018-04-09 17:58:10 -03:00
touch-bar-spacer.md 📝 Fix dead urls 2018-04-09 17:58:10 -03:00
touch-bar.md docs: Fix TouchBar API example (#16482) 2019-01-21 17:07:47 -08:00
tray.md refactor: Split 'Event' docs/types into more specific Event types (#17038) 2019-02-19 09:24:19 +00:00
web-contents.md feat: add 'disableHtmlFullscreenWindowResize' option to webPreferences (#17203) 2019-03-07 15:29:37 -08:00
web-frame.md feat: Add content script world isolation (#17032) 2019-03-11 16:27:57 -07:00
web-request.md docs: Fix types and missing property in WebRequest APIs (#17046) 2019-02-28 09:30:38 +00:00
webview-tag.md docs: remove removed autosize attribute (#16884) 2019-02-11 14:15:15 -08:00
window-open.md docs: specify BrowserWindow features passable to window.open 2018-09-10 17:49:54 +02:00