WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
324703
[GTK][WPE] TestInputMethodContext cannot observe the cursor area, notification counts or the preedit caret offset
https://bugs.webkit.org/show_bug.cgi?id=324703
Summary
[GTK][WPE] TestInputMethodContext cannot observe the cursor area, notificatio...
Simon Pena
Reported
2026-09-21 05:37:17 PDT
`Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestInputMethodContext.cpp` has a mock `WebKitInputMethodContext` that all the input method API tests use. It presents the following gaps: 1. The mock does not implement the `notify_cursor_area` virtual function, so tests can't check what cursor area the input method is given, or whether it is given one at all. 2. The mock always reports the preedit caret at the end of the preedit. No test can exercise a caret inside the preedit, which is where several code paths differ. 3. The mock does not count notifications. A test can check that a notification arrived with the right values, but not that one failed to arrive. Missing notifications are a common failure mode for input methods.
Attachments
Add attachment
proposed patch, testcase, etc.
Simon Pena
Comment 1
2026-09-21 06:09:42 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/74494
EWS
Comment 2
2026-09-28 05:04:06 PDT
Committed
322053@main
(978866cd7f3e): <
https://commits.webkit.org/322053@main
> Reviewed commits have been landed. Closing PR #74494 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug