diff options
author | Martin Negyokru <negyokru@inf.u-szeged.hu> | 2023-05-03 18:20:03 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-05-09 19:27:58 +0000 |
commit | e3dd4bdde06ce25dbfcbecb873816d209858d1d6 (patch) | |
tree | b81926d84a3757502e23d95c418292591cd9c8ed | |
parent | 8f160a91d3e3759f0670938c4eb88081b3d78cea (diff) | |
download | qtwebengine-e3dd4bdde06ce25dbfcbecb873816d209858d1d6.tar.gz |
Disable EyeDropperAPI
This patch fixes the devtools eyedropper.
The EyeDropperAPI is an experimental feature which
we don't implement and devtools uses it by default.
Change-Id: Iaa28ee5d0381750fc967dbc72d725b46b239a656
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
(cherry picked from commit 15fbd9b171b9ec8be6b1748f77a03233841c970d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/core/web_engine_context.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index cc4c89609..3e0806e5d 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -700,6 +700,11 @@ WebEngineContext::WebEngineContext() // Avoid crashing when websites tries using this feature (since 83) disableFeatures.push_back(features::kInstalledApp.name); + // Not implemented but it overrides the devtools eyedropper + // Should be sync with kEyeDropper base::Feature + parsedCommandLine->AppendSwitchASCII(switches::kDisableBlinkFeatures, "EyeDropperAPI"); + disableFeatures.push_back(features::kEyeDropper.name); + // Explicitly tell Chromium about default-on features we do not support disableFeatures.push_back(features::kBackgroundFetch.name); disableFeatures.push_back(features::kWebOTP.name); |