Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Issue 2316203002: Fix find box bug after navigation. (Closed)

Created:
4 years, 3 months ago by paulmeyer
Modified:
4 years, 3 months ago
Reviewers:
pdr.
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix find box bug after navigation. The bug is that after searching for a string that is not on the page, if you then navigate to a page that DOES contain that string, find-in-page will still find no matches. What is actually happening in the search after navigation is that even though TextFinder::find() is returning true (to indicate that a match is found), the field |m_lastFindRequestCompletedWithNoMatches| is still false (from the last page, which had no matches). This prevents any matches from being highlighted during the subsequent scoping effort. The simple (and correct) fix is to set |m_lastFindRequestCompletedWithNoMatches| to false if a match is found in TextFinder::find() (since the find request no longer has no matches). BUG=644448 Committed: https://crrev.com/d3b32d5fe57bf7cf749d057e1944321735ae8e1e Cr-Commit-Position: refs/heads/master@{#417095}

Patch Set 1 #

Patch Set 2 : Added test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -0 lines) Patch
M content/browser/find_request_manager_browsertest.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download
A content/test/data/find_in_simple_page.html View 1 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/TextFinder.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
paulmeyer
+pdr@ for review.
4 years, 3 months ago (2016-09-07 15:26:06 UTC) #2
pdr.
On 2016/09/07 at 15:26:06, paulmeyer wrote: > +pdr@ for review. Thanks for the fix! This ...
4 years, 3 months ago (2016-09-07 17:41:39 UTC) #3
paulmeyer
Test added. PTAL.
4 years, 3 months ago (2016-09-07 18:41:59 UTC) #4
pdr.
On 2016/09/07 at 18:41:59, paulmeyer wrote: > Test added. PTAL. LGTM! Really happy to see ...
4 years, 3 months ago (2016-09-07 20:14:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2316203002/20001
4 years, 3 months ago (2016-09-07 20:18:48 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-07 22:25:15 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 22:26:48 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d3b32d5fe57bf7cf749d057e1944321735ae8e1e
Cr-Commit-Position: refs/heads/master@{#417095}

Powered by Google App Engine
This is Rietveld 408576698