Keyboard protection flag: added flag for webview for feature management (#1737)

This commit is contained in:
Carmelo Messina
2025-02-22 09:58:19 +01:00
parent e896c00f07
commit fdee8dfcae
+17 -1
View File
@@ -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