Skip to content

Commit 7854c69

Browse files
WizardCMLain-B
authored andcommitted
Disable Bluetooth support
The integrated browser is not supposed to be a fully featured web browser, but rather provide support for modern web standards that can be integrated neatly into an overlay or the UI via a panel. WebBluetooth requires additional system permissions (especially on macOS) and can potentially cause OBS to crash if those permissions are denied. That's not ideal either.
1 parent 7fe8b0b commit 7854c69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

browser-app.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ void BrowserApp::OnBeforeCommandLineProcessing(
8383
std::string disableFeatures =
8484
command_line->GetSwitchValue("disable-features");
8585
disableFeatures += ",HardwareMediaKeyHandling";
86+
disableFeatures += ",WebBluetooth";
8687
command_line->AppendSwitchWithValue("disable-features",
8788
disableFeatures);
8889
} else {
8990
command_line->AppendSwitchWithValue("disable-features",
91+
"WebBluetooth,"
9092
"HardwareMediaKeyHandling");
9193
}
9294

0 commit comments

Comments
 (0)