[Webkit-unassigned] [Bug 201775] New: FindController::findString always updates foundStringMatchIndex even if match is the same as before

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 13 14:27:44 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=201775

            Bug ID: 201775
           Summary: FindController::findString always updates
                    foundStringMatchIndex even if match is the same as
                    before
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mmokary at apple.com
                CC: webkit-bug-importer at group.apple.com

FindController::findString will always either increment or decrement the match index. This is incorrect when the highlighted match is the same as before.

For example, say the search string "Hello" highlights some text in the sentence "Hello, world.". Match count is (for example) 10 and match index is 0. All is well. The search is refined to "Hello, world" and the highlighted area is expanded according to the larger match range, but does not move to a different match on the page. The match index increments to 1 despite highlighting the same match as before.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190913/6979e2ac/attachment.html>


More information about the webkit-unassigned mailing list