| Index: content/browser/find_request_manager.cc
|
| diff --git a/content/browser/find_request_manager.cc b/content/browser/find_request_manager.cc
|
| index 5c2eeb2df374da1d18e384648cea298a81708156..7713bc3a5b962de9f96ae5660c376943b08f7b76 100644
|
| --- a/content/browser/find_request_manager.cc
|
| +++ b/content/browser/find_request_manager.cc
|
| @@ -158,9 +158,13 @@ void FindRequestManager::OnFindReply(RenderFrameHost* rfh,
|
| number_of_matches_ += matches_delta;
|
| matches_per_frame_it->second = number_of_matches;
|
|
|
| + // All matches may have been removed since the last find reply.
|
| + if (rfh == active_frame_ && !number_of_matches)
|
| + relative_active_match_ordinal_ = 0;
|
| +
|
| // The active match ordinal may need updating since the number of matches
|
| // before the active match may have changed.
|
| - if (rfh != active_frame_)
|
| + if (rfh != active_frame_ || !number_of_matches)
|
| UpdateActiveMatchOrdinal();
|
| }
|
| }
|
|
|