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

Issue 2700613003: Enable find-in-page across GuestViews. (Closed)

Created:
3 years, 10 months ago by paulmeyer
Modified:
3 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, extensions-reviews_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable find-in-page across GuestViews. This patch enables find-in-page to work across GuestViews, including WebViews and PDFs, as explained in this design doc: https://drive.google.com/open?id=1tl1L99oTgqQxolV7jRvDLzFQ9K251rQ_E16mOwB-BuU. Specifically, this will allow find-in-page to work with embedded PDFs, which has been a (very) longstanding bug in Chrome. This patch also cleans up code that was previously used to route find requests to the guest WebContents in the case of full-page GuestViews. This shortcut is no longer needed, as this patch implements a more general solution to traversing frames across all WebContentses during a find session. BUG=55421 Review-Url: https://codereview.chromium.org/2700613003 Cr-Commit-Position: refs/heads/master@{#462327} Committed: https://chromium.googlesource.com/chromium/src/+/9dedb9f32fca0666761f83c405c5959c148ea751

Patch Set 1 #

Total comments: 22

Patch Set 2 : Rebased. #

Patch Set 3 : Addressed comments by ncarter@. #

Patch Set 4 : Added TODO. #

Patch Set 5 : Rebased. #

Patch Set 6 : Small fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+507 lines, -306 lines) Patch
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_find_request_manager_browsertest.cc View 3 chunks +30 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/shim/main.js View 1 2 3 4 4 chunks +61 lines, -22 lines 0 comments Download
M components/guest_view/browser/guest_view_base.h View 3 chunks +0 lines, -15 lines 0 comments Download
M components/guest_view/browser/guest_view_base.cc View 3 chunks +0 lines, -41 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.h View 2 chunks +0 lines, -13 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.cc View 3 chunks +0 lines, -46 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 3 chunks +8 lines, -12 lines 0 comments Download
M content/browser/find_request_manager.h View 5 chunks +15 lines, -11 lines 0 comments Download
M content/browser/find_request_manager.cc View 1 2 3 4 14 chunks +203 lines, -61 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 7 chunks +43 lines, -8 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 12 chunks +122 lines, -23 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.h View 1 chunk +0 lines, -7 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 1 chunk +6 lines, -7 lines 0 comments Download
A content/test/data/find_in_embedded_pdf_page.html View 1 chunk +13 lines, -0 lines 0 comments Download
M extensions/browser/guest_view/extension_options/extension_options_guest.h View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/guest_view/extension_options/extension_options_guest.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.h View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 84 (73 generated)
paulmeyer
3 years, 9 months ago (2017-03-23 15:47:29 UTC) #44
ncarter (slow)
I took an incomplete pass, and haven't fully grokked what's going on here yet. But, ...
3 years, 9 months ago (2017-03-27 23:21:37 UTC) #49
lfg
On 2017/03/27 23:21:37, ncarter wrote: > I took an incomplete pass, and haven't fully grokked ...
3 years, 8 months ago (2017-03-28 16:24:57 UTC) #50
paulmeyer
ncarter: PTAL. lfg: I like the idea of doing traversal from FrameTreeNode, but after thinking ...
3 years, 8 months ago (2017-03-31 18:31:16 UTC) #52
ncarter (slow)
lgtm https://codereview.chromium.org/2700613003/diff/160001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/2700613003/diff/160001/content/browser/find_request_manager.cc#newcode33 content/browser/find_request_manager.cc:33: children[i] = node->child_at(i); On 2017/03/31 18:31:16, paulmeyer wrote: ...
3 years, 8 months ago (2017-04-03 18:23:43 UTC) #53
lfg
lgtm with nit. On 2017/03/31 18:31:16, paulmeyer wrote: > ncarter: PTAL. > > lfg: I ...
3 years, 8 months ago (2017-04-03 18:28:49 UTC) #54
paulmeyer
+thestig@ for review of: chrome/browser/apps/guest_view/web_view_browsertest.cc chrome/browser/chrome_find_request_manager_browsertest.cc chrome/test/data/extensions/platform_apps/web_view/shim/main.js pdf/out_of_process_instance.cc
3 years, 8 months ago (2017-04-04 14:45:59 UTC) #56
Lei Zhang
On 2017/04/04 14:45:59, paulmeyer wrote: > +thestig@ for review of: > > chrome/browser/apps/guest_view/web_view_browsertest.cc > chrome/browser/chrome_find_request_manager_browsertest.cc ...
3 years, 8 months ago (2017-04-04 18:42:35 UTC) #63
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/2700613003/270001
3 years, 8 months ago (2017-04-06 01:07:31 UTC) #80
commit-bot: I haz the power
Committed patchset #6 (id:270001) as https://chromium.googlesource.com/chromium/src/+/9dedb9f32fca0666761f83c405c5959c148ea751
3 years, 8 months ago (2017-04-06 02:15:55 UTC) #83
paulmeyer
3 years, 8 months ago (2017-04-10 18:38:51 UTC) #84
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:270001) has been created in
https://codereview.chromium.org/2808923003/ by paulmeyer@chromium.org.

The reason for reverting is: Suspected cause of crashes:
https://bugs.chromium.org/p/chromium/issues/detail?id=709478.

Powered by Google App Engine
This is Rietveld 408576698