electron/lib/browser
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
..
api feat: UtilityProcess API (#34980) 2022-10-19 22:49:49 -07:00
.eslintrc.json chore: add missing .eslintrc.json files to limit imports properly (#35719) 2022-09-20 13:25:33 -05:00
default-menu.ts chore: update Discord invite links (#34730) 2022-07-05 11:55:15 -04:00
devtools.ts fix: type internal APIs that can return null properly (#29852) 2021-07-27 14:48:12 +09:00
guest-view-manager.ts chore: remove deprecated 'new-window' event (#34526) 2022-08-09 17:57:05 -04:00
guest-window-manager.ts chore: remove deprecated 'new-window' event (#34526) 2022-08-09 17:57:05 -04:00
init.ts feat: remove nativeWindowOpen option (#29405) 2022-01-06 09:28:03 -08:00
ipc-main-impl.ts feat: add WebContents.ipc (#34959) 2022-08-03 16:55:12 -07:00
ipc-main-internal-utils.ts chore: remove unused sendToAll + related APIs (#26771) 2020-12-03 15:55:50 +09:00
ipc-main-internal.ts feat: add WebContents.ipc (#34959) 2022-08-03 16:55:12 -07:00
message-port-main.ts build: enable JS semicolons (#22783) 2020-03-20 13:28:31 -07:00
parse-features-string.ts chore: move libs only used in browser out of common (#31780) 2021-11-10 08:54:51 -08:00
rpc-server.ts fix: make preload calculation identical between sandbox & non-sandboxed (#34531) 2022-06-15 13:22:28 -07:00
web-view-events.ts chore: move libs only used in browser out of common (#31780) 2021-11-10 08:54:51 -08:00