opnsense-ports/devel/electron32/files/patch-content_app_content__main.cc
Franco Fichtner fd3bf1794a */*: sync with upstream
Taken from: FreeBSD
2024-09-23 09:02:17 +02:00

20 lines
988 B
C++

--- content/app/content_main.cc.orig 2024-08-30 11:29:37 UTC
+++ content/app/content_main.cc
@@ -207,7 +207,7 @@ RunContentProcess(ContentMainParams params,
base::EnableTerminationOnOutOfMemory();
logging::RegisterAbslAbortHook();
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
// The various desktop environments set this environment variable that
// allows the dbus client library to connect directly to the bus. When this
// variable is not set (test environments like xvfb-run), the dbus client
@@ -293,7 +293,7 @@ RunContentProcess(ContentMainParams params,
command_line->AppendSwitch(switches::kUseMobileUserAgent);
#endif
-#if (BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)) && !defined(COMPONENT_BUILD)
+#if (BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)) && !defined(COMPONENT_BUILD) && defined(notyet)
base::subtle::EnableFDOwnershipEnforcement(true);
#endif