Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 53a5080c50e9bade67e8f181ae9c47de282dfde7
https://github.com/WebKit/WebKit/commit/53a5080c50e9bade67e8f181ae9c47de282dfde7
Author: Simon Pena <[email protected]>
Date: 2026-10-02 (Fri, 02 Oct 2026)
Changed paths:
M Source/WebKit/UIProcess/API/glib/InputMethodFilter.cpp
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestInputMethodContext.cpp
Log Message:
-----------
[GTK][WPE] Input method is not told the cursor area or surrounding text again
after refocus
https://bugs.webkit.org/show_bug.cgi?id=325637
Reviewed by Adrian Perez de Castro.
InputMethodFilter skips a cursor area that moved less than 10 pixels from the
last one it sent,
and a surrounding text that is the same as the last one. It never cleared these
values. When the
same field was focused again with the caret and the text unchanged, the input
method got focus-in
and nothing else. A new input method context got nothing until the values
changed.
Clear both values when focus leaves and when the context changes. The 10 pixel
threshold does not
change.
Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestInputMethodContext.cpp
* Source/WebKit/UIProcess/API/glib/InputMethodFilter.cpp:
(WebKit::InputMethodFilter::setContext):
(WebKit::InputMethodFilter::notifyFocusedOut):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestInputMethodContext.cpp:
(testWebKitInputMethodContextCursorArea):
Canonical link: https://commits.webkit.org/322492@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications