diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-03-02 14:16:34 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-03-04 22:54:20 +0000 |
commit | 891b97e59d2a68bc24d36eceebd18b71027c66d1 (patch) | |
tree | 2b1f5d06d838c240575b430b53cfb2db302694f4 /src | |
parent | 40584600d0044ee998ffa5a1b8bd103e93bf2324 (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')
-rw-r--r-- | src/core/content_browser_client_qt.cpp | 9 | ||||
-rw-r--r-- | src/core/content_browser_client_qt.h | 3 |
2 files changed, 12 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 diff --git a/src/core/content_browser_client_qt.h b/src/core/content_browser_client_qt.h index eb1bb5fd0..3db182e69 100644 --- a/src/core/content_browser_client_qt.h +++ b/src/core/content_browser_client_qt.h @@ -166,6 +166,9 @@ public: bool AllowWorkerIndexedDB(const GURL &url, content::BrowserContext *context, const std::vector<content::GlobalFrameRoutingId> &render_frames) override; + AllowWebBluetoothResult AllowWebBluetooth(content::BrowserContext *browser_context, + const url::Origin &requesting_origin, + const url::Origin &embedding_origin) override; #if QT_CONFIG(webengine_geolocation) std::unique_ptr<device::LocationProvider> OverrideSystemLocationProvider() override; |