summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Negyokru <negyokru@inf.u-szeged.hu>2023-05-03 18:20:03 +0200
committerMartin Negyokru <negyokru@inf.u-szeged.hu>2023-05-09 12:29:23 +0200
commit15fbd9b171b9ec8be6b1748f77a03233841c970d (patch)
tree6ab3d9ddd8a5e8ebf6cf5d86c5ef5908b97382b2
parentdb21f13e77982623b8342f981f31d8fa2ea12434 (diff)
downloadqtwebengine-15fbd9b171b9ec8be6b1748f77a03233841c970d.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. Pick-to: 6.5 Change-Id: Iaa28ee5d0381750fc967dbc72d725b46b239a656 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--src/core/web_engine_context.cpp5
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);