5261e08d0c
* chore: bump chromium in DEPS to 113.0.5657.0 * chore: bump chromium in DEPS to 113.0.5660.0 * chore: update patches printing.patch https://chromium-review.googlesource.com/c/chromium/src/+/4347664 https://chromium-review.googlesource.com/c/chromium/src/+/4347664 https://chromium-review.googlesource.com/c/chromium/src/+/4338810 https://chromium-review.googlesource.com/c/chromium/src/+/4339496 mas_disable_remote_layer.patch https://chromium-review.googlesource.com/c/chromium/src/+/4334544 https://chromium-review.googlesource.com/c/chromium/src/+/4335299 * Add API to verify `TOP_LEVEL_STORAGE_ACCESS` permission status https://chromium-review.googlesource.com/c/chromium/src/+/4306712 * Move os_crypt into a sync/ subdirectory. https://chromium-review.googlesource.com/c/chromium/src/+/4336304 * chore: generate libc++ headers --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: deepak1556 <hop2deep@gmail.com>
28 lines
1.3 KiB
Diff
28 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: John Kleinschmidt <jkleinsc@electronjs.org>
|
|
Date: Mon, 11 Oct 2021 14:08:06 -0400
|
|
Subject: load v8 snapshot in browser process
|
|
|
|
https://chromium-review.googlesource.com/c/chromium/src/+/3183394
|
|
made a change to not load the v8 snapshot in the browser process,
|
|
but due to the nature of electron, we need to load the v8 snapshot
|
|
in the browser process.
|
|
|
|
diff --git a/content/app/content_main_runner_impl.cc b/content/app/content_main_runner_impl.cc
|
|
index 0846656e45ba8ed88a069cc0e7c19758997613a6..6a72d0a8f731b5dbc4468ba302bb76a18b4dff92 100644
|
|
--- a/content/app/content_main_runner_impl.cc
|
|
+++ b/content/app/content_main_runner_impl.cc
|
|
@@ -274,11 +274,8 @@ void LoadV8SnapshotFile(const base::CommandLine& command_line) {
|
|
|
|
bool ShouldLoadV8Snapshot(const base::CommandLine& command_line,
|
|
const std::string& process_type) {
|
|
- // The gpu does not need v8, and the browser only needs v8 when in single
|
|
- // process mode.
|
|
- if (process_type == switches::kGpuProcess ||
|
|
- (process_type.empty() &&
|
|
- !command_line.HasSwitch(switches::kSingleProcess))) {
|
|
+ // The gpu does not need v8
|
|
+ if (process_type == switches::kGpuProcess) {
|
|
return false;
|
|
}
|
|
return true;
|