electron/lib/browser/api
Robo da0fd286b4
feat: UtilityProcess API (#34980)
* chore: initial scaffolding

* chore: implement interface and docs

* chore: address code style review

* fix: cleanup of utility process on shutdown

* chore: simplify NodeBindings::CreateEnvironment

* chore: rename disableLibraryValidation => allowLoadingUnsignedLibraries

* chore: implement process.parentPort

* chore(posix): implement stdio pipe interface

* chore(win): implement stdio interface

* chore: reenable SetNodeOptions for utility process

* chore: add specs

* chore: fix lint

* fix: update kill API

* fix: update process.parentPort API

* fix: exit event

* docs: update exit event

* fix: tests on linux

* chore: expand on some comments

* fix: shutdown of pipe reader

Avoid logging since it is always the case that reader end of
pipe will terminate after the child process.

* fix: remove exit code check for crash spec

* fix: rm PR_SET_NO_NEW_PRIVS for unsandbox utility process

* chore: fix incorrect rebase

* fix: address review feedback

* chore: rename utility_process -> utility

* chore: update docs

* chore: cleanup c++ implemantation

* fix: leak in NodeServiceHost impl

* chore: minor cleanup

* chore: cleanup JS implementation

* chore: flip default stdio to inherit

* fix: some api improvements

* Support cwd option
* Remove path restriction for modulePath
* Rewire impl for env support

* fix: add tests for cwd and env option

* chore: alt impl for reading stdio handles

* chore: support message queuing

* chore: fix lint

* chore: new UtilityProcess => utilityProcess.fork

* fix: support for uncaught exception exits

* chore: remove process.execArgv as default

* fix: windows build

* fix: style changes

* fix: docs and style changes

* chore: update patches

* spec: disable flaky test on win32 arm CI

Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
2022-10-19 22:49:49 -07:00
..
auto-updater refactor: use optional chaining / nullish coalescing operator (#35217) 2022-08-08 10:11:04 +02:00
exports
views
app.ts refactor: don't expose deprecate as an internal module (#35311) 2022-08-15 17:09:33 +09:00
auto-updater.ts
base-window.ts feat: add BrowserWindow.isFocusable() (#28642) 2021-04-21 12:32:19 +02:00
browser-view.ts
browser-window.ts feat: replace scroll-touch* with generic input-event (#35531) 2022-09-27 12:47:46 -07:00
content-tracing.ts
crash-reporter.ts refactor: don't expose deprecate as an internal module (#35311) 2022-08-15 17:09:33 +09:00
desktop-capturer.ts refactor: use optional chaining / nullish coalescing operator (#35217) 2022-08-08 10:11:04 +02:00
dialog.ts feat: add width option to dialog.showMessageBox() (#30474) 2021-09-23 19:56:14 +09:00
global-shortcut.ts
in-app-purchase.ts
ipc-main.ts feat: add WebContents.ipc (#34959) 2022-08-03 16:55:12 -07:00
menu-item-roles.ts feat: add Substitutions menu roles on macOS (#32024) 2022-01-06 10:41:28 -08:00
menu-item.ts feat: add MenuItem.userAccelerator property (#26682) 2021-06-29 16:28:16 -07:00
menu-utils.ts
menu.ts chore: fix typos (#34731) 2022-07-05 11:49:56 -04:00
message-channel.ts
module-list.ts feat: UtilityProcess API (#34980) 2022-10-19 22:49:49 -07:00
native-theme.ts chore: move main process only accessible API bindings away from common (#34634) 2022-06-21 16:34:56 +09:00
net-log.ts
net.ts refactor: initialize member variables directly (#34046) 2022-05-04 16:30:05 +02:00
notification.ts chore: move main process only accessible API bindings away from common (#34634) 2022-06-21 16:34:56 +09:00
power-monitor.ts
power-save-blocker.ts
protocol.ts fix: make protocol wrapper remote-friendly again (#27009) 2020-12-16 16:56:53 +09:00
push-notifications.ts feat: Enable APNS registration + notification delivery in macOS apps (#33574) 2022-07-12 08:38:49 -07:00
safe-storage.ts feat: add electron.safeStorage encryption API (#30020) 2021-08-05 15:12:54 -07:00
screen.ts chore: move main process only accessible API bindings away from common (#34634) 2022-06-21 16:34:56 +09:00
session.ts
share-menu.ts
system-preferences.ts chore: remove deprecated systemPreferences methods (#26849) 2020-12-16 08:34:24 +09:00
touch-bar.ts refactor: use optional chaining / nullish coalescing operator (#35217) 2022-08-08 10:11:04 +02:00
tray.ts
utility-process.ts feat: UtilityProcess API (#34980) 2022-10-19 22:49:49 -07:00
view.ts
web-contents-view.ts
web-contents.ts fix: printToPDF default margins (#36060) 2022-10-19 10:16:28 +02:00
web-frame-main.ts feat: add WebContents.ipc (#34959) 2022-08-03 16:55:12 -07:00