5844369: controlledframe: Disable Web Bluetooth for <webview> & <controlledframe>

https://chromium-review.googlesource.com/c/chromium/src/+/5844369
This commit is contained in:
clavin
2024-09-18 15:32:35 -06:00
parent c4a5653cf2
commit 0ac4852763
2 changed files with 5 additions and 0 deletions

View File

@@ -114,6 +114,10 @@ void ElectronBluetoothDelegate::RevokeDevicePermissionWebInitiated(
NOTIMPLEMENTED();
}
bool ElectronBluetoothDelegate::MayUseBluetooth(RenderFrameHost* frame) {
return true;
}
bool ElectronBluetoothDelegate::IsAllowedToAccessService(
RenderFrameHost* frame,
const WebBluetoothDeviceId& device_id,

View File

@@ -76,6 +76,7 @@ class ElectronBluetoothDelegate : public content::BluetoothDelegate {
void RevokeDevicePermissionWebInitiated(
content::RenderFrameHost* frame,
const blink::WebBluetoothDeviceId& device_id) override;
bool MayUseBluetooth(content::RenderFrameHost* frame) override;
bool IsAllowedToAccessService(content::RenderFrameHost* frame,
const blink::WebBluetoothDeviceId& device_id,
const device::BluetoothUUID& service) override;