Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f4390ce9ebd961b174612eca36f613d6d17daaec
https://github.com/WebKit/WebKit/commit/f4390ce9ebd961b174612eca36f613d6d17daaec
Author: Vitaly Dyachkov <[email protected]>
Date: 2026-09-28 (Mon, 28 Sep 2026)
Changed paths:
M Source/WebKit/UIProcess/API/glib/WebKitFindController.cpp
M
Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestWebKitFindController.cpp
Log Message:
-----------
[GTK][WPE] `WebKitFindController::found-text` reports `match_count` of 1
after `search_next()`/`search_previous()`
https://bugs.webkit.org/show_bug.cgi?id=325421
Reviewed by Carlos Garcia Campos.
`webkit_find_controller_search()` emits `found-text` with the correct
number of matches. Subsequent calls to
`webkit_find_controller_search_next()` or
`webkit_find_controller_search_previous()` emit `found-text` with
`match_count == 1`, regardless of how many matches the page has.
Unconditionally add `WebKit::FindOptions::DetermineMatchIndex` to the
default find options.
Test:
Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestWebKitFindController.cpp
* Source/WebKit/UIProcess/API/glib/WebKitFindController.cpp:
(webKitFindControllerPerform):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestWebKitFindController.cpp:
(testFindControllerNext):
(testFindControllerPrevious):
Canonical link: https://commits.webkit.org/322036@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications