electron/shell/common/api
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
..
api.mojom fix: ensure ElectronBrowser mojo service is only bound to appropriate render frames (#33323) 2022-03-18 19:50:05 -07:00
BUILD.gn Merge branch 'master' into roller/chromium/master 2021-03-15 18:43:25 -04:00
electron_api_asar.cc fix: initialize asar support in worker threads (#33216) 2022-03-22 20:37:55 -04:00
electron_api_clipboard.cc chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
electron_api_clipboard.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
electron_api_clipboard_mac.mm 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
electron_api_command_line.cc feat: add commandLine.removeSwitch (#30933) 2021-10-06 16:45:58 -04:00
electron_api_environment.cc refactor: check ELECTRON_ENABLE_LOGGING via native implementation (#25623) 2020-10-06 09:58:31 +09:00
electron_api_key_weak_map.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
electron_api_native_image.cc fix: ensure external memory adjustments are balanced (#33266) 2022-03-16 18:54:30 +01:00
electron_api_native_image.h fix: ensure external memory adjustments are balanced (#33266) 2022-03-16 18:54:30 +01:00
electron_api_native_image_mac.mm refactor: use QuickLookThumbnailing where applicable (#32456) 2022-02-02 23:01:05 +01:00
electron_api_native_image_win.cc fix: remove ipc wrapper for nativeImage.createThumbnailFromPath (#30728) 2021-08-27 14:21:36 -07:00
electron_api_shell.cc chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
electron_api_testing.cc feat: bring --enable-logging functionality in line with Chromium (#25089) 2021-06-17 14:17:25 -07:00
electron_api_v8_util.cc chore: bump chromium to 100.0.4894.0 (main) (#32852) 2022-02-25 13:17:35 -05:00
electron_bindings.cc chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
electron_bindings.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
features.cc Merge branch 'master' into roller/chromium/master 2021-03-15 18:43:25 -04:00
object_life_monitor.cc refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
object_life_monitor.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00