aboutsummaryrefslogtreecommitdiff
path: root/devel/electron39/files/patch-services_device_public_cpp_device__features.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron39/files/patch-services_device_public_cpp_device__features.cc')
-rw-r--r--devel/electron39/files/patch-services_device_public_cpp_device__features.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron39/files/patch-services_device_public_cpp_device__features.cc b/devel/electron39/files/patch-services_device_public_cpp_device__features.cc
new file mode 100644
index 000000000000..9c4d25c357b5
--- /dev/null
+++ b/devel/electron39/files/patch-services_device_public_cpp_device__features.cc
@@ -0,0 +1,20 @@
+--- services/device/public/cpp/device_features.cc.orig 2025-10-21 20:19:54 UTC
++++ services/device/public/cpp/device_features.cc
+@@ -81,7 +81,7 @@ BASE_FEATURE(kBatteryStatusManagerBroadcastReceiverInB
+ // Modifies the internal allowlist behavior that enables privileged extensions
+ // to bypass the HID blocklist when accessing FIDO devices. When enabled,
+ // privileged extensions can access non-FIDO interfaces on known security keys.
+-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ BASE_FEATURE(kSecurityKeyHidInterfacesAreFido,
+ base::FEATURE_ENABLED_BY_DEFAULT);
+ #else
+@@ -130,7 +130,7 @@ BASE_FEATURE(kAutomaticUsbDetach, base::FEATURE_ENABLE
+ // a USB interface is busy.
+ #if BUILDFLAG(IS_ANDROID)
+ BASE_FEATURE(kAutomaticUsbDetach, base::FEATURE_ENABLED_BY_DEFAULT);
+-#elif BUILDFLAG(IS_LINUX)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ BASE_FEATURE(kAutomaticUsbDetach, base::FEATURE_DISABLED_BY_DEFAULT);
+ #endif // BUILDFLAG(IS_ANDROID)
+