summaryrefslogtreecommitdiffstats
path: root/src/core/content_browser_client_qt.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-03-02 14:16:34 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-03-04 22:54:20 +0000
commit891b97e59d2a68bc24d36eceebd18b71027c66d1 (patch)
tree2b1f5d06d838c240575b430b53cfb2db302694f4 /src/core/content_browser_client_qt.cpp
parent40584600d0044ee998ffa5a1b8bd103e93bf2324 (diff)
Do not allow WebBluetooth to continue
We do not support it. Fixes: QTBUG-91490 Change-Id: I972e1d5cd8507571c4c2305e2f38c4345f69538e Reviewed-by: Florian Bruhin <qt-project.org@the-compiler.org> Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
Diffstat (limited to 'src/core/content_browser_client_qt.cpp')
-rw-r--r--src/core/content_browser_client_qt.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp
index 690c4f43e..0b5da57a6 100644
--- a/src/core/content_browser_client_qt.cpp
+++ b/src/core/content_browser_client_qt.cpp
@@ -1338,4 +1338,13 @@ content::WebContentsViewDelegate *ContentBrowserClientQt::GetWebContentsViewDele
return nullptr;
}
+content::ContentBrowserClient::AllowWebBluetoothResult
+ContentBrowserClientQt::AllowWebBluetooth(content::BrowserContext *browser_context,
+ const url::Origin &requesting_origin,
+ const url::Origin &embedding_origin)
+{
+ DCHECK(browser_context);
+ return content::ContentBrowserClient::AllowWebBluetoothResult::BLOCK_GLOBALLY_DISABLED;
+}
+
} // namespace QtWebEngineCore