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

Issue 2249133002: Changes to how FindRequestManager reports find results. (Closed)

Created:
4 years, 4 months ago by paulmeyer
Modified:
4 years, 3 months ago
Reviewers:
lfg
CC:
chromium-reviews, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changes to how FindRequestManager reports find results. I've noticed some problematic edge cases with the reporting of find-in-page results from FindRequestManager. While trying to write some new tests in find_request_manager_browsertest.cc, I noticed that the new tests sometimes fail because of these edge cases. The existing tests in there could definitely fail from this as well, though much less likely. I have seen them fail very rarely before though and this is probably why. The details of the issue, edge cases, and my solution are explained in this design doc: https://docs.google.com/a/google.com/document/d/1BCvuSW9XSBH7GMx5VC0TgBh6XmJJDOzz_XZKItjF6oM/edit?usp=sharing UPDATE: Anther find-in-page CL I landed recently (https://codereview.chromium.org/2186113002/) was reverted because of a test that began timing out. I believe that failure is caused by the problems fixed here, so that bugfix is now blocked on this CL. Committed: https://crrev.com/bbaacbe524515e8eafcd04f6dc6d872d403ffed6 Cr-Commit-Position: refs/heads/master@{#415353}

Patch Set 1 #

Total comments: 25

Patch Set 2 : Addressed comments. #

Patch Set 3 : Expanded comment for FinalUpdate(), and renamed to FinalUpdateReceived(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -30 lines) Patch
M content/browser/find_request_manager.h View 1 2 4 chunks +20 lines, -6 lines 0 comments Download
M content/browser/find_request_manager.cc View 1 2 12 chunks +63 lines, -24 lines 0 comments Download

Messages

Total messages: 35 (26 generated)
paulmeyer
4 years, 4 months ago (2016-08-18 16:07:59 UTC) #18
lfg
Added some comments. https://codereview.chromium.org/2249133002/diff/20001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/2249133002/diff/20001/content/browser/find_request_manager.cc#newcode188 content/browser/find_request_manager.cc:188: NotifyFindReply(request_id, false /* final_update */); I ...
4 years, 4 months ago (2016-08-18 18:50:42 UTC) #20
paulmeyer
PTAL https://codereview.chromium.org/2249133002/diff/20001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/2249133002/diff/20001/content/browser/find_request_manager.cc#newcode188 content/browser/find_request_manager.cc:188: NotifyFindReply(request_id, false /* final_update */); On 2016/08/18 18:50:42, ...
4 years, 3 months ago (2016-08-29 22:27:41 UTC) #22
lfg
Just one more question and 2 nits. https://codereview.chromium.org/2249133002/diff/20001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/2249133002/diff/20001/content/browser/find_request_manager.cc#newcode260 content/browser/find_request_manager.cc:260: NotifyFindReply(current_session_id_, final_update); ...
4 years, 3 months ago (2016-08-30 14:57:38 UTC) #27
paulmeyer
PTAL. https://codereview.chromium.org/2249133002/diff/20001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/2249133002/diff/20001/content/browser/find_request_manager.cc#newcode260 content/browser/find_request_manager.cc:260: NotifyFindReply(current_session_id_, final_update); On 2016/08/30 14:57:38, lfg wrote: > ...
4 years, 3 months ago (2016-08-30 15:40:12 UTC) #28
lfg
lgtm https://codereview.chromium.org/2249133002/diff/20001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/2249133002/diff/20001/content/browser/find_request_manager.cc#newcode501 content/browser/find_request_manager.cc:501: return rfh && matches_per_frame_.count(rfh); On 2016/08/30 15:40:12, paulmeyer ...
4 years, 3 months ago (2016-08-30 15:43:23 UTC) #29
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/2249133002/80001
4 years, 3 months ago (2016-08-30 17:11:59 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 3 months ago (2016-08-30 18:04:30 UTC) #33
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 18:06:25 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bbaacbe524515e8eafcd04f6dc6d872d403ffed6
Cr-Commit-Position: refs/heads/master@{#415353}

Powered by Google App Engine
This is Rietveld 408576698