forked from pool/nodejs-electron
- New upstream release 30.2.0 * Node 20.15.0 * Enabled the Windows Control Overlay API on Linux. * Expose systemPreferences to utilityProcess. * Fixed a focus issue when calling BrowserWindow.setTopBrowserView. * Fixed an issue where fetch-dependent interfaces could be missing in Web Workers with nodeIntegrationInWorker enabled. * Fixed an issue where control could fail to return properly after saving a dialog using showOpenDialogSync on Linux. * Fixes an issue where the user-specified default path did not work in some circumstances when using Linux dialogs. * Fixes potentially incorrect exit code in UtilityProcess. * (Leap 15.5) Fix heap buffer overflow in libaom (CVE-2024-5493 bsc#1225690) * Security fixes for V8: CVE-2024-6100, CVE-2024-6101 (bsc#1226504) * Fix use after free in Swiftshader (CVE-2024-6291 bsc#1226933) - Update to 30.1.2 XXXFIXMEXXX * ABI break: NODE_MODULE_VERSION is now 123 * Chromium 124.0.6367.243 * Node 20.14.0 * V8 12.4 * Added WebContentsView and BaseWindow, replacing the now-deprecated BrowserView APIs. * cross-origin iframes now use Permission Policy to access features * Removed: The --disable-color-correct-rendering switch * The inputFieldType property in the context-menu params has been removed * Removed: process.getIOCounters() * see https://www.electronjs.org/blog/electron-30-0 and https://github.com/electron/electron/releases/tag/v30.0.0 for more - Fedora: use bundled simdutf as the system version is too old - Drop no longer needed patches * chromium-122-avoid-SFINAE-TypeConverter.patch * chromium-122-BookmarkNode-missing-operator.patch * chromium-98-EnumTable-crash.patch * chromium-gcc11.patch * CVE-2024-30260-undici-clear-proxy-authorization.patch * CVE-2024-30261-undici-fetch-integrity.patch * ElectronDesktopWindowTreeHostLinux-OnWindowTiledStateChanged-crash.patch * grid_sizing_tree-Wchanges-meaning.patch * hit_test_request-missing-optional.patch * InternalAllocator-too-many-initializers.patch * material_color_utilities-tones-missing-round.patch * nested-nested-nested-nested-nested-nested-regex-patterns.patch * perfetto-numeric_storage-double_t.patch * plus_address_types-missing-optional.patch * race_network_request_write_buffer_manager-missing-optional.patch * resolution_monitor-missing-bitset.patch * script_promise_resolver-explicit-specialization.patch * search_engine_choice_service-missing-optional.patch * text_break_iterator-icu74-breakAllLineBreakClassTable-should-be-consistent.patch * v8-instance-type-inl-constexpr-used-before-its-definition.patch - Drop no longer needed -Wno-error=narrowing from CXXFLAGS - Add patches to fix build * chromium-124-shims.patch * enable_stack_trace_line_numbers-symbol_level.patch * angle-FramebufferVk-powf.patch * licenses.py-FileNotFoundError.patch * span_reader-missing-optional.patch * bitset-missing-uint8_t-memcpy.patch * temporal_scalability_id_extractor-missing-bitset.patch * gpu_adapter_info-missing-optional.patch * first_party_sets_handler_database_helper-missing-optional.patch * async_iterable-forwarding.patch * preview_cancel_reason-missing-string.patch * script_streamer-atomic-include.patch - Add -Wno-packed-not-aligned -Wno-address to CXXFLAGS to suppress build logspam - Add libaom_av1_encoder-aom37-AV1E_SET_MAX_CONSEC_FRAME_DROP_CBR.patch to build with old libaom - Add backported DesktopNativeWidgetAura-HandleActivationChanged-crash.patch - Revert upstream changes which introduce a use-after-free bug causing crashes (bsc#1224178 deb#1067886) * bad-font-gc0000.patch * bad-font-gc000.patch * bad-font-gc00.patch * bad-font-gc0.patch * bad-font-gc11.patch * bad-font-gc1.patch * bad-font-gc2.patch * bad-font-gc3.patch OBS-URL: https://build.opensuse.org/request/show/1187058 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=159
82 lines
3.3 KiB
Diff
82 lines
3.3 KiB
Diff
Remove this unused component which brings a huge dependency on //third_party/dawn/native which we don't want to build
|
|
|
|
--- src/content/utility/BUILD.gn.orig
|
|
+++ src/content/utility/BUILD.gn
|
|
@@ -64,9 +64,6 @@ source_set("utility") {
|
|
"//services/data_decoder:lib",
|
|
"//services/data_decoder/public/cpp",
|
|
"//services/network:network_service",
|
|
- "//services/on_device_model:on_device_model_service",
|
|
- "//services/on_device_model/public/cpp",
|
|
- "//services/on_device_model/public/mojom",
|
|
"//services/screen_ai/buildflags",
|
|
"//services/service_manager/public/cpp",
|
|
"//services/service_manager/public/mojom",
|
|
--- src/content/utility/services.cc.orig
|
|
+++ src/content/utility/services.cc
|
|
@@ -31,7 +31,6 @@
|
|
#include "services/audio/service_factory.h"
|
|
#include "services/data_decoder/data_decoder_service.h"
|
|
#include "services/network/network_service.h"
|
|
-#include "services/on_device_model/on_device_model_service.h"
|
|
#include "services/tracing/public/mojom/tracing_service.mojom.h"
|
|
#include "services/tracing/tracing_service.h"
|
|
#include "services/video_capture/public/mojom/video_capture_service.mojom.h"
|
|
@@ -327,13 +326,6 @@ auto RunVideoCapture(
|
|
}
|
|
#endif
|
|
|
|
-auto RunOnDeviceModel(
|
|
- mojo::PendingReceiver<on_device_model::mojom::OnDeviceModelService>
|
|
- receiver) {
|
|
- return std::make_unique<on_device_model::OnDeviceModelService>(
|
|
- std::move(receiver));
|
|
-}
|
|
-
|
|
#if BUILDFLAG(ENABLE_VR) && !BUILDFLAG(IS_ANDROID)
|
|
auto RunXrDeviceService(
|
|
mojo::PendingReceiver<device::mojom::XRDeviceService> receiver) {
|
|
@@ -408,9 +400,6 @@ void RegisterMainThreadServices(mojo::Se
|
|
services.Add(RunVideoEffects);
|
|
#endif
|
|
|
|
- if (optimization_guide::features::CanLaunchOnDeviceModelService()) {
|
|
- services.Add(RunOnDeviceModel);
|
|
- }
|
|
|
|
#if BUILDFLAG(GOOGLE_CHROME_BRANDING) && BUILDFLAG(IS_CHROMEOS)
|
|
services.Add(RunShapeDetectionService);
|
|
--- src/content/utility/utility_main.cc.old 2024-04-02 09:53:16.050958400 +0000
|
|
+++ src/content/utility/utility_main.cc 2024-04-07 17:41:04.823696600 +0000
|
|
@@ -32,7 +32,6 @@
|
|
#include "sandbox/policy/mojom/sandbox.mojom.h"
|
|
#include "sandbox/policy/sandbox.h"
|
|
#include "sandbox/policy/sandbox_type.h"
|
|
-#include "services/on_device_model/on_device_model_service.h"
|
|
#include "services/screen_ai/buildflags/buildflags.h"
|
|
#include "services/tracing/public/cpp/trace_startup.h"
|
|
#include "third_party/icu/source/common/unicode/unistr.h"
|
|
@@ -202,10 +201,6 @@ int UtilityMain(MainFunctionParams param
|
|
? base::MessagePumpType::UI
|
|
: base::MessagePumpType::DEFAULT;
|
|
|
|
- if (parameters.command_line->GetSwitchValueASCII(switches::kUtilitySubType) ==
|
|
- on_device_model::mojom::OnDeviceModelService::Name_) {
|
|
- CHECK(on_device_model::OnDeviceModelService::PreSandboxInit());
|
|
- }
|
|
|
|
#if BUILDFLAG(IS_MAC)
|
|
auto sandbox_type =
|
|
@@ -283,11 +278,6 @@ int UtilityMain(MainFunctionParams param
|
|
case sandbox::mojom::Sandbox::kAudio:
|
|
pre_sandbox_hook = base::BindOnce(&audio::AudioPreSandboxHook);
|
|
break;
|
|
- case sandbox::mojom::Sandbox::kOnDeviceModelExecution:
|
|
- on_device_model::OnDeviceModelService::AddSandboxLinuxOptions(
|
|
- sandbox_options);
|
|
- pre_sandbox_hook = base::BindOnce(&GpuPreSandboxHook);
|
|
- break;
|
|
case sandbox::mojom::Sandbox::kSpeechRecognition:
|
|
pre_sandbox_hook =
|
|
base::BindOnce(&speech::SpeechRecognitionPreSandboxHook);
|