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

Issue 2236403004: Handling new frames and frame navigations with find-in-page during a find session. (Closed)

Created:
4 years, 4 months ago by paulmeyer
Modified:
4 years, 3 months ago
Reviewers:
kenrb, Peter Kasting, dcheng
CC:
chromium-reviews, jam, dglazkov+blink, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handling new frames and frame navigations with find-in-page during a find session. This patch implements new find-in-page functionality that allows for frames that are either newly added or navigated during a find session to be automatically searched so that matches in their new content are automatically highlighted and included in the results shown in the find bar. Also, there is a fix included in this patch to prevent the find-in-page bar from closing when a subframe navigates (the find session should only end if the main frame navigates). Design doc: https://docs.google.com/document/d/1r4F19FIKg4zPJCaSyJ9-T0sgFbxlCGKL3FjqQEAKegg/view BUG=2220, 621660 Committed: https://crrev.com/ec9c7f30eb10ab3fc9ab6707f7b736446ab89aa1 Cr-Commit-Position: refs/heads/master@{#420715}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Rebased and updated comment. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -22 lines) Patch
M chrome/browser/ui/find_bar/find_bar_controller.cc View 1 chunk +1 line, -1 line 1 comment Download
M content/browser/find_request_manager.h View 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/find_request_manager.cc View 6 chunks +27 lines, -10 lines 0 comments Download
M content/browser/find_request_manager_browsertest.cc View 1 3 chunks +118 lines, -2 lines 0 comments Download
M content/common/frame_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/TextFinder.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/TextFinder.cpp View 1 4 chunks +10 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFindOptions.h View 1 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 38 (19 generated)
paulmeyer
+dcheng@ for review.
4 years, 4 months ago (2016-08-12 21:30:15 UTC) #4
paulmeyer
On 2016/08/12 21:30:15, paulmeyer wrote: > +dcheng@ for review. Actually, if you'll wait a bit ...
4 years, 4 months ago (2016-08-15 18:17:26 UTC) #7
paulmeyer
On 2016/08/15 18:17:26, paulmeyer wrote: > On 2016/08/12 21:30:15, paulmeyer wrote: > > +dcheng@ for ...
4 years, 3 months ago (2016-09-02 21:46:48 UTC) #12
dcheng
Overall looks reasonable. Most of the comments are because I don't understand the code nearly ...
4 years, 3 months ago (2016-09-21 07:15:44 UTC) #13
paulmeyer
Thanks for getting to this. I know you're really swamped right now. PTAL https://codereview.chromium.org/2236403004/diff/60001/chrome/browser/ui/find_bar/find_bar_controller.cc File ...
4 years, 3 months ago (2016-09-21 15:40:52 UTC) #17
dcheng
Thanks for the detailed explanations https://codereview.chromium.org/2236403004/diff/60001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/2236403004/diff/60001/content/browser/find_request_manager.cc#newcode159 content/browser/find_request_manager.cc:159: matches_per_frame_it->second = number_of_matches; On ...
4 years, 3 months ago (2016-09-22 00:36:47 UTC) #18
paulmeyer
https://codereview.chromium.org/2236403004/diff/60001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/2236403004/diff/60001/content/browser/find_request_manager.cc#newcode159 content/browser/find_request_manager.cc:159: matches_per_frame_it->second = number_of_matches; On 2016/09/22 00:36:47, dcheng wrote: > ...
4 years, 3 months ago (2016-09-22 15:11:42 UTC) #19
dcheng
Ok, LGTM (but let's file that bug, if the visibility check is busted, that's valuable ...
4 years, 3 months ago (2016-09-22 17:12:10 UTC) #20
paulmeyer
+pkasting@ for review of find_bar_controller.cc +kenrb@ for review of frame_messages.h
4 years, 3 months ago (2016-09-22 17:43:50 UTC) #24
kenrb
lgtm
4 years, 3 months ago (2016-09-22 18:07:47 UTC) #25
Peter Kasting
LGTM https://codereview.chromium.org/2236403004/diff/120001/chrome/browser/ui/find_bar/find_bar_controller.cc File chrome/browser/ui/find_bar/find_bar_controller.cc (right): https://codereview.chromium.org/2236403004/diff/120001/chrome/browser/ui/find_bar/find_bar_controller.cc#newcode162 chrome/browser/ui/find_bar/find_bar_controller.cc:162: if (find_bar_->IsFindBarVisible() && commit_details->is_main_frame && It seems a ...
4 years, 3 months ago (2016-09-23 00:12:34 UTC) #26
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/2236403004/120001
4 years, 3 months ago (2016-09-23 18:22:48 UTC) #28
paulmeyer
On 2016/09/23 00:12:34, Peter Kasting wrote: > LGTM > > https://codereview.chromium.org/2236403004/diff/120001/chrome/browser/ui/find_bar/find_bar_controller.cc > File chrome/browser/ui/find_bar/find_bar_controller.cc (right): ...
4 years, 3 months ago (2016-09-23 18:26:07 UTC) #29
Peter Kasting
On 2016/09/23 18:26:07, paulmeyer wrote: > On 2016/09/23 00:12:34, Peter Kasting wrote: > > LGTM ...
4 years, 3 months ago (2016-09-23 18:49:15 UTC) #30
paulmeyer
On 2016/09/23 18:49:15, Peter Kasting wrote: > On 2016/09/23 18:26:07, paulmeyer wrote: > > On ...
4 years, 3 months ago (2016-09-23 19:31:29 UTC) #31
Peter Kasting
On 2016/09/23 19:31:29, paulmeyer wrote: > On 2016/09/23 18:49:15, Peter Kasting wrote: > > On ...
4 years, 3 months ago (2016-09-23 19:40:51 UTC) #32
commit-bot: I haz the power
Committed patchset #2 (id:120001)
4 years, 3 months ago (2016-09-23 20:25:59 UTC) #34
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/ec9c7f30eb10ab3fc9ab6707f7b736446ab89aa1 Cr-Commit-Position: refs/heads/master@{#420715}
4 years, 3 months ago (2016-09-23 20:28:10 UTC) #36
Garrett Casto
4 years, 3 months ago (2016-09-23 23:14:45 UTC) #37
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:120001) has been created in
https://codereview.chromium.org/2363993003/ by gcasto@chromium.org.

The reason for reverting is: This seems to be failing pretty consistently on
some bots (e.g.
https://uberchromegw.corp.google.com/i/chromium.win/builders/Win7%20Tests%20%...).

Powered by Google App Engine
This is Rietveld 408576698