261954137b
* chore: bump chromium in DEPS to 128.0.6571.0 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * 5636652: [4/n] Introduce RenderInputRouterClient and move InputRouterClient implementation to RenderInputRouter. https://chromium-review.googlesource.com/c/chromium/src/+/5636652 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * 5655811: Revert "Reland "Reland "Add toolchains without PartitionAlloc-Everywhere for dump_syms et al""" https://chromium-review.googlesource.com/c/chromium/src/+/5655811 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * 5581006: [tracing] Forward startup tracing config as shmem https://chromium-review.googlesource.com/c/chromium/src/+/5581006 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * chore: fixup patch indices Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * 5608450: [Views AX] Move Image Auto Captioning strings to ui/ https://chromium-review.googlesource.com/c/chromium/src/+/5608450 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * 5648900: [Extensions] Move ExtensionAPIEnabledForServiceWorkerScript() https://chromium-review.googlesource.com/c/chromium/src/+/5648900 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * 5651681: Remove Web Speech API profanity masking https://chromium-review.googlesource.com/c/chromium/src/+/5651681 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * 5651361: `content::RenderFrame::GetBrowserInterfaceBroker`: return a const-ref. https://chromium-review.googlesource.com/c/chromium/src/+/5651361 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * 5604943: Start capture of toolbar after gesture end events are received https://chromium-review.googlesource.com/c/chromium/src/+/5604943 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * 5624392: [BRP] Enforce raw_ptr/ref in Renderer code https://chromium-review.googlesource.com/c/chromium/src/+/5624392 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * 5659259: Portals: Remove WebContentsView::TransferDragSecurityInfo https://chromium-review.googlesource.com/c/chromium/src/+/5659259 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * 5230721: Move ComposeStatus to components/compose https://chromium-review.googlesource.com/c/chromium/src/+/5230721 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * 5647894: [api] Cleanup usages of v8::ReturnValue<void>::Set[NonEmpty](..) https://chromium-review.googlesource.com/c/v8/v8/+/5647894 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@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 eedd753c7990a0bd336340418421b7e7f39362c9..f143dbf39d011153c83a4d4c0b9afc54bb839ab9 100644
|
|
--- a/content/app/content_main_runner_impl.cc
|
|
+++ b/content/app/content_main_runner_impl.cc
|
|
@@ -302,11 +302,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;
|