mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 07:00:31 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
50 lines
2.5 KiB
C++
50 lines
2.5 KiB
C++
--- content/public/common/content_features.cc.orig 2022-11-30 08:12:58 UTC
|
|
+++ content/public/common/content_features.cc
|
|
@@ -46,7 +46,7 @@ BASE_FEATURE(kAudioServiceOutOfProcess,
|
|
"AudioServiceOutOfProcess",
|
|
// TODO(crbug.com/1052397): Remove !IS_CHROMEOS_LACROS once lacros starts being
|
|
// built with OS_CHROMEOS instead of OS_LINUX.
|
|
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \
|
|
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \
|
|
(BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS))
|
|
base::FEATURE_ENABLED_BY_DEFAULT
|
|
#else
|
|
@@ -58,7 +58,7 @@ BASE_FEATURE(kAudioServiceOutOfProcess,
|
|
// kAudioServiceOutOfProcess feature is enabled.
|
|
BASE_FEATURE(kAudioServiceSandbox,
|
|
"AudioServiceSandbox",
|
|
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA)
|
|
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
|
|
base::FEATURE_ENABLED_BY_DEFAULT
|
|
#else
|
|
base::FEATURE_DISABLED_BY_DEFAULT
|
|
@@ -1228,7 +1228,7 @@ BASE_FEATURE(kWebAssemblyCodeProtection,
|
|
"WebAssemblyCodeProtection",
|
|
base::FEATURE_DISABLED_BY_DEFAULT);
|
|
|
|
-#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(ARCH_CPU_X86_64)
|
|
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_64)
|
|
// Use memory protection keys in userspace (PKU) (if available) to protect code
|
|
// JITed for WebAssembly. Fall back to traditional memory protection if
|
|
// WebAssemblyCodeProtection is also enabled.
|
|
@@ -1270,7 +1270,7 @@ BASE_FEATURE(kWebAssemblyTiering,
|
|
BASE_FEATURE(kWebAssemblyTrapHandler,
|
|
"WebAssemblyTrapHandler",
|
|
#if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || \
|
|
- BUILDFLAG(IS_MAC)) && \
|
|
+ BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD)) && \
|
|
defined(ARCH_CPU_X86_64)) || \
|
|
(BUILDFLAG(IS_MAC) && defined(ARCH_CPU_ARM64))
|
|
base::FEATURE_ENABLED_BY_DEFAULT
|
|
@@ -1345,7 +1345,11 @@ BASE_FEATURE(kWebUIReportOnlyTrustedTypes,
|
|
|
|
// Controls whether the WebUSB API is enabled:
|
|
// https://wicg.github.io/webusb
|
|
+#if BUILDFLAG(IS_BSD)
|
|
+BASE_FEATURE(kWebUsb, "WebUSB", base::FEATURE_DISABLED_BY_DEFAULT);
|
|
+#else
|
|
BASE_FEATURE(kWebUsb, "WebUSB", base::FEATURE_ENABLED_BY_DEFAULT);
|
|
+#endif
|
|
|
|
// Controls whether the WebXR Device API is enabled.
|
|
BASE_FEATURE(kWebXr, "WebXR", base::FEATURE_ENABLED_BY_DEFAULT);
|