From fdee8dfcae1be3edb685cecd44d9d8ee71b9b1c1 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Sat, 22 Feb 2025 09:58:19 +0100 Subject: [PATCH] Keyboard protection flag: added flag for webview for feature management (#1737) --- build/patches/Keyboard-protection-flag.patch | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/build/patches/Keyboard-protection-flag.patch b/build/patches/Keyboard-protection-flag.patch index 24f76150..c51b118c 100644 --- a/build/patches/Keyboard-protection-flag.patch +++ b/build/patches/Keyboard-protection-flag.patch @@ -8,6 +8,7 @@ keyboard events. License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html --- + .../common/ProductionSupportedFlagList.java | 5 + .../Keyboard-protection-flag.inc | 10 ++ .../renderer/core/events/keyboard_event.cc | 136 ++++++++++++++++++ .../renderer/core/events/keyboard_event.h | 3 + @@ -16,9 +17,24 @@ License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html .../dom/dom_keyboard_layout_map_win.cc | 13 ++ .../keycodes/keyboard_code_conversion.cc | 10 +- ui/events/keycodes/keyboard_code_conversion.h | 2 +- - 8 files changed, 181 insertions(+), 3 deletions(-) + 9 files changed, 186 insertions(+), 3 deletions(-) create mode 100644 cromite_flags/chrome/browser/about_flags_cc/Keyboard-protection-flag.inc +diff --git a/android_webview/java/src/org/chromium/android_webview/common/ProductionSupportedFlagList.java b/android_webview/java/src/org/chromium/android_webview/common/ProductionSupportedFlagList.java +--- a/android_webview/java/src/org/chromium/android_webview/common/ProductionSupportedFlagList.java ++++ b/android_webview/java/src/org/chromium/android_webview/common/ProductionSupportedFlagList.java +@@ -1020,6 +1020,11 @@ public final class ProductionSupportedFlagList { + Flag.baseFeature( + BlinkFeatures.WEB_SQL_WEBVIEW_ACCESS, + "If false, prevents access to WebSQL on webview."), ++ Flag.baseFeature( ++ "SystemKeyboardProtection", ++ "Hides user preference on the system keyboard by setting the standard " ++ + "eng layout and removing the layout information from the " ++ + "javascript keyboard events."), + // Add new commandline switches and features above. The final entry should have a + // trailing comma for cleaner diffs. + }; diff --git a/cromite_flags/chrome/browser/about_flags_cc/Keyboard-protection-flag.inc b/cromite_flags/chrome/browser/about_flags_cc/Keyboard-protection-flag.inc new file mode 100644 --- /dev/null