Bug 324967

Summary: [GTK][WPE] MiniBrowser cannot show what WebKit reports to the input method
Product: WebKit Reporter: Simon Pena <spena>
Component: WebKitGTKAssignee: Simon Pena <spena>
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=324966
https://bugs.webkit.org/show_bug.cgi?id=324703
https://bugs.webkit.org/show_bug.cgi?id=325166

Simon Pena
Reported 2026-09-23 05:20:50 PDT
WebKit tells the embedder about the focused editable element through WebKitInputMethodContext: the input purpose and hints, where the caret is, the surrounding text, and when focus moves in and out. However, none of it can be seen while debugging. It is not exposed to JavaScript, so a test page cannot read it, and it does not appear in any WebKit log. The only way to see it today is to write a program that installs its own input method context. Add a --log-input-method option to MiniBrowser, for GTK and WPE, which installs such a context and prints what it receives. Add a manual test page with a field for each interesting case.
Attachments
Simon Pena
Comment 1 2026-09-24 01:13:27 PDT
EWS
Comment 2 2026-09-28 02:58:06 PDT
Committed 322048@main (e71ef10bf847): <https://commits.webkit.org/322048@main> Reviewed commits have been landed. Closing PR #74787 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.