Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cc1692eb5646743871ff7d8e4c97902a8c0ff6e0
https://github.com/WebKit/WebKit/commit/cc1692eb5646743871ff7d8e4c97902a8c0ff6e0
Author: Fujii Hironori <[email protected]>
Date: 2026-10-05 (Mon, 05 Oct 2026)
Changed paths:
M Source/WebKit/WebProcess/WebPage/glib/WebPageGLib.cpp
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestInputMethodContext.cpp
Log Message:
-----------
[GTK][WPE] Respect inputmode as well as type for input elements
https://bugs.webkit.org/show_bug.cgi?id=324966
Reviewed by Carlos Garcia Campos.
inputMethodStateForElement() derived the purpose of an <input> only from its
type, so <input inputmode="numeric"> reported a free-form purpose and
<input inputmode="none"> did not inhibit the on screen keyboard. It already
honored inputmode for <textarea> and contenteditable elements.
Also apply inputmode to <input> elements, as iOS does. A missing or invalid
inputmode keeps the purpose derived from the type. A password field keeps its
purpose, because InputMethodState cannot express both, but inputmode="none"
still inhibits the on screen keyboard.
* Source/WebKit/WebProcess/WebPage/glib/WebPageGLib.cpp:
(WebKit::inputMethodStateForElement):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestInputMethodContext.cpp:
(testWebKitInputMethodContextInputMode):
(beforeAll):
Canonical link: https://commits.webkit.org/322692@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications