chore: bump chromium to 108.0.5355.0 (main) (#35900)
* chore: bump chromium in DEPS to 108.0.5339.0 * chore: bump chromium in DEPS to 108.0.5341.0 * chore: sync patch to unrelated upstream code shear patches/chromium/network_service_allow_remote_certificate_verification_logic.patch Xref:3927793
* chore: sync patch to unrelated upstream code shear patches/chromium/printing.patch Xref:3927793
* chore: sync patch to unrelated upstream code shear patches/chromium/chore_add_electron_deps_to_gitignores.patch Xref:3906023
* chore: refresh patches - `e patches all` * chore: remove unused parameter from WillCreateURLLoaderRequestInterceptors Xref:3932218
* perf: avoid unique pointer round trip Xref:3913938
* refactor: Simplify entropy provider management. Xref:3901211
* fixup! perf: avoid unique pointer round trip * fixup! perf: avoid unique pointer round trip * refactor: update typeof FileSelectHelper::select_file_dialog_ Xref:3930092
* fixup! fixup! perf: avoid unique pointer round trip * chore: bump chromium in DEPS to 108.0.5343.0 * chore: update patches * chore: bump chromium in DEPS to 108.0.5345.0 * chore: bump chromium in DEPS to 108.0.5347.0 * chore: bump chromium in DEPS to 108.0.5349.0 * chore: bump chromium in DEPS to 108.0.5351.0 * chore: bump chromium in DEPS to 108.0.5353.0 * chore: bump chromium in DEPS to 108.0.5355.0 * chore: update patches * Refactor display::win::DisplayInfo to display::win::internal::DisplayInfo Refs3929014
* Update proxy resolution to use NAK - Part 2 Refs3934016
* Disable PreconnectManager when the user disabled preloading. Refs3928470
Refs3937183
* chore: update patches * chore: update sysroot * linux: Remove breakpad integration Refs3764621
* chore: update comments Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by: deepak1556 <hop2deep@gmail.com> Co-authored-by: electron-patch-conflict-fixer[bot] <83340002+electron-patch-conflict-fixer[bot]@users.noreply.github.com>
This commit is contained in:
parent
bcafe8f654
commit
f2c341b655
95 changed files with 484 additions and 1001 deletions
|
@ -58,7 +58,6 @@
|
|||
|
||||
#if BUILDFLAG(IS_LINUX)
|
||||
#include "base/nix/xdg_util.h"
|
||||
#include "components/crash/core/app/breakpad_linux.h"
|
||||
#include "v8/include/v8-wasm-trap-handler-posix.h"
|
||||
#include "v8/include/v8.h"
|
||||
#endif
|
||||
|
@ -372,15 +371,11 @@ void ElectronMainDelegate::PreSandboxStartup() {
|
|||
// Zygote needs to call InitCrashReporter() in RunZygote().
|
||||
if (process_type != ::switches::kZygoteProcess && !process_type.empty()) {
|
||||
ElectronCrashReporterClient::Create();
|
||||
if (crash_reporter::IsCrashpadEnabled()) {
|
||||
if (command_line->HasSwitch(
|
||||
crash_reporter::switches::kCrashpadHandlerPid)) {
|
||||
crash_reporter::InitializeCrashpad(false, process_type);
|
||||
crash_reporter::SetFirstChanceExceptionHandler(
|
||||
v8::TryHandleWebAssemblyTrapPosix);
|
||||
}
|
||||
} else {
|
||||
breakpad::InitCrashReporter(process_type);
|
||||
if (command_line->HasSwitch(
|
||||
crash_reporter::switches::kCrashpadHandlerPid)) {
|
||||
crash_reporter::InitializeCrashpad(false, process_type);
|
||||
crash_reporter::SetFirstChanceExceptionHandler(
|
||||
v8::TryHandleWebAssemblyTrapPosix);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -503,15 +498,10 @@ void ElectronMainDelegate::ZygoteForked() {
|
|||
base::CommandLine::ForCurrentProcess();
|
||||
std::string process_type =
|
||||
command_line->GetSwitchValueASCII(::switches::kProcessType);
|
||||
if (crash_reporter::IsCrashpadEnabled()) {
|
||||
if (command_line->HasSwitch(
|
||||
crash_reporter::switches::kCrashpadHandlerPid)) {
|
||||
crash_reporter::InitializeCrashpad(false, process_type);
|
||||
crash_reporter::SetFirstChanceExceptionHandler(
|
||||
v8::TryHandleWebAssemblyTrapPosix);
|
||||
}
|
||||
} else {
|
||||
breakpad::InitCrashReporter(process_type);
|
||||
if (command_line->HasSwitch(crash_reporter::switches::kCrashpadHandlerPid)) {
|
||||
crash_reporter::InitializeCrashpad(false, process_type);
|
||||
crash_reporter::SetFirstChanceExceptionHandler(
|
||||
v8::TryHandleWebAssemblyTrapPosix);
|
||||
}
|
||||
|
||||
// Reset the command line for the newly spawned process.
|
||||
|
|
|
@ -37,9 +37,5 @@ int main(int argc, char* argv[]) {
|
|||
params.argc = argc;
|
||||
params.argv = const_cast<const char**>(argv);
|
||||
base::CommandLine::Init(params.argc, params.argv);
|
||||
// TODO(https://crbug.com/1176772): Remove when Chrome Linux is fully migrated
|
||||
// to Crashpad.
|
||||
base::CommandLine::ForCurrentProcess()->AppendSwitch(
|
||||
::switches::kEnableCrashpad);
|
||||
return content::ContentMain(std::move(params));
|
||||
}
|
||||
|
|
|
@ -30,10 +30,6 @@
|
|||
#include "shell/common/node_bindings.h"
|
||||
#include "shell/common/node_includes.h"
|
||||
|
||||
#if BUILDFLAG(IS_LINUX)
|
||||
#include "components/crash/core/app/breakpad_linux.h"
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
#include "chrome/child/v8_crashpad_support_win.h"
|
||||
#endif
|
||||
|
@ -41,7 +37,6 @@
|
|||
#if !defined(MAS_BUILD)
|
||||
#include "components/crash/core/app/crashpad.h" // nogncheck
|
||||
#include "shell/app/electron_crash_reporter_client.h"
|
||||
#include "shell/browser/api/electron_api_crash_reporter.h"
|
||||
#include "shell/common/crash_keys.h"
|
||||
#endif
|
||||
|
||||
|
@ -100,35 +95,6 @@ void ClearCrashKeyStub(const std::string& key) {}
|
|||
|
||||
namespace electron {
|
||||
|
||||
#if BUILDFLAG(IS_LINUX)
|
||||
void CrashReporterStart(gin_helper::Dictionary options) {
|
||||
std::string submit_url;
|
||||
bool upload_to_server = true;
|
||||
bool ignore_system_crash_handler = false;
|
||||
bool rate_limit = false;
|
||||
bool compress = false;
|
||||
std::map<std::string, std::string> global_extra;
|
||||
std::map<std::string, std::string> extra;
|
||||
options.Get("submitURL", &submit_url);
|
||||
options.Get("uploadToServer", &upload_to_server);
|
||||
options.Get("ignoreSystemCrashHandler", &ignore_system_crash_handler);
|
||||
options.Get("rateLimit", &rate_limit);
|
||||
options.Get("compress", &compress);
|
||||
options.Get("extra", &extra);
|
||||
options.Get("globalExtra", &global_extra);
|
||||
|
||||
std::string product_name;
|
||||
if (options.Get("productName", &product_name))
|
||||
global_extra["_productName"] = product_name;
|
||||
std::string company_name;
|
||||
if (options.Get("companyName", &company_name))
|
||||
global_extra["_companyName"] = company_name;
|
||||
api::crash_reporter::Start(submit_url, upload_to_server,
|
||||
ignore_system_crash_handler, rate_limit, compress,
|
||||
global_extra, extra, true);
|
||||
}
|
||||
#endif
|
||||
|
||||
v8::Local<v8::Value> GetParameters(v8::Isolate* isolate) {
|
||||
std::map<std::string, std::string> keys;
|
||||
#if !defined(MAS_BUILD)
|
||||
|
@ -144,15 +110,12 @@ int NodeMain(int argc, char* argv[]) {
|
|||
v8_crashpad_support::SetUp();
|
||||
#endif
|
||||
|
||||
#if !defined(MAS_BUILD)
|
||||
ElectronCrashReporterClient::Create();
|
||||
#endif
|
||||
|
||||
// TODO(deepak1556): Enable crashpad support on linux for
|
||||
// ELECTRON_RUN_AS_NODE processes.
|
||||
// Refs https://github.com/electron/electron/issues/36030
|
||||
#if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_MAC) && !defined(MAS_BUILD))
|
||||
ElectronCrashReporterClient::Create();
|
||||
crash_reporter::InitializeCrashpad(false, "node");
|
||||
#endif
|
||||
|
||||
#if !defined(MAS_BUILD)
|
||||
crash_keys::SetCrashKeysFromCommandLine(
|
||||
*base::CommandLine::ForCurrentProcess());
|
||||
crash_keys::SetPlatformCrashKey();
|
||||
|
@ -225,10 +188,6 @@ int NodeMain(int argc, char* argv[]) {
|
|||
|
||||
// Setup process.crashReporter in child node processes
|
||||
gin_helper::Dictionary reporter = gin::Dictionary::CreateEmpty(isolate);
|
||||
#if BUILDFLAG(IS_LINUX)
|
||||
reporter.SetMethod("start", &CrashReporterStart);
|
||||
#endif
|
||||
|
||||
reporter.SetMethod("getParameters", &GetParameters);
|
||||
#if defined(MAS_BUILD)
|
||||
reporter.SetMethod("addExtraParameter", &SetCrashKeyStub);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue