electron/lib
Fedor Indutny 06a00b74e8
fix: initialize asar support in worker threads (#33216)
* fix: initialize asar support in worker threads

Use `ObjectWrap` instead of gin's Wrap in `electron_api_asar.cc` because
gin isn't fully initialized (and apparently not possible to initialize
without ruining the isolate configuration and array buffer allocator) in
worker threads. In the worker thread call `setupAsarSupport` just as we
do for the main process.

* Update lib/asar/fs-wrapper.ts

Co-authored-by: Darshan Sen <raisinten@gmail.com>

* Update patches/node/worker_thread_add_asar_support.patch

Co-authored-by: Darshan Sen <raisinten@gmail.com>

* Add a test

Co-authored-by: Darshan Sen <raisinten@gmail.com>
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
2022-03-22 20:37:55 -04:00
..
asar fix: initialize asar support in worker threads (#33216) 2022-03-22 20:37:55 -04:00
browser build: fix build by removing usage of removed preloadUrl (#33319) 2022-03-17 00:13:48 -07:00
common feat: remove nativeWindowOpen option (#29405) 2022-01-06 09:28:03 -08:00
isolated_renderer refactor: implement <webview> using contextBridge (#29037) 2021-05-15 16:42:07 +09:00
renderer fix: will-attach-webview handler modifying params.instanceId does not break <webview> (#32386) 2022-01-12 16:41:20 +09:00
sandboxed_renderer refactor: merge duplicate code from sandboxed/non-sandboxed renderer init (#31755) 2021-11-10 09:59:33 +09:00
worker fix: self.module.paths not working in web workers (#29955) 2021-07-05 08:48:46 +09:00