Bug 324966
| Summary: | [GTK][WPE] Respect inputmode as well as type for input elements | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Pena <spena> |
| Component: | WebKitGTK | Assignee: | Fujii Hironori <fujii> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=183621 https://bugs.webkit.org/show_bug.cgi?id=188878 https://bugs.webkit.org/show_bug.cgi?id=188896 https://bugs.webkit.org/show_bug.cgi?id=324967 |
||
Simon Pena
inputMethodStateForElement in Source/WebKit/WebProcess/WebPage/glib/WebPageGLib.cpp reads the inputmode attribute with HTMLElement::canonicalInputMode() for textarea and contenteditable elements. For <input> elements it doesn't, the purpose comes from the input type alone.
This means that the input method might be given the wrong purpose, and inputmode="none" does not add WEBKIT_INPUT_HINT_INHIBIT_OSK, which is the standard way for a page to say it provides its own editor.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Fujii Hironori
Pull request: https://github.com/WebKit/WebKit/pull/75875
EWS
Committed 322692@main (cc1692eb5646): <https://commits.webkit.org/322692@main>
Reviewed commits have been landed. Closing PR #75875 and removing active labels.