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

Issue 1365563003: Prevent guest views from issuing a search for empty text. (Closed)

Created:
5 years, 2 months ago by Lei Zhang
Modified:
5 years, 1 month ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, yusukes+watch_chromium.org, extensions-reviews_chromium.org, binji+watch_chromium.org, nasko+codewatch_chromium.org, jam, piman+watch_chromium.org, teravest+watch_chromium.org, darin-cc_chromium.org, bradnelson+warch_chromium.org, mkwst+moarreviews-renderer_chromium.org, chromium-apps-reviews_chromium.org, tzik, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent guest views from issuing a search for empty text. Do the same for Android webview. Set up roadblocks along the way to prevent this from happening again. BUG=535086 Committed: https://crrev.com/6057a6b26a758d3542b9d74579e4e517b49244a9 Cr-Commit-Position: refs/heads/master@{#359419}

Patch Set 1 #

Patch Set 2 : lint #

Total comments: 5

Patch Set 3 : rebase #

Patch Set 4 : blind stab at making test pass - nope, no right #

Patch Set 5 : rebase #

Patch Set 6 : add tests #

Patch Set 7 : fix android? #

Patch Set 8 : fix android some more #

Patch Set 9 : fix android, once and for all #

Patch Set 10 : clear selection for guest_view too #

Patch Set 11 : parens #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -42 lines) Patch
M android_webview/browser/find_helper.h View 1 2 3 4 5 6 7 8 5 chunks +2 lines, -6 lines 0 comments Download
M android_webview/browser/find_helper.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +27 lines, -17 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/shim/main.js View 1 2 3 4 5 1 chunk +11 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 4 chunks +4 lines, -3 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_find_helper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/test/data/web_view/apitest/main.js View 1 2 3 4 5 1 chunk +11 lines, -2 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M pdf/pdf_engine.h View 1 chunk +1 line, -1 line 0 comments Download
M pdf/pdfium/pdfium_engine.h View 1 chunk +1 line, -1 line 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 2 3 4 3 chunks +11 lines, -7 lines 0 comments Download
M ppapi/cpp/private/find_private.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
Lei Zhang
creis: contents fsamuel: extensions raymes: pdf, ppapi paulmeyeer: FYI
5 years, 2 months ago (2015-09-26 00:08:26 UTC) #2
Lei Zhang
And CC the right paulmeyer.
5 years, 2 months ago (2015-09-26 00:12:05 UTC) #3
Fady Samuel
+paulmeyer@ for find API. https://codereview.chromium.org/1365563003/diff/20001/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc File extensions/browser/api/guest_view/web_view/web_view_internal_api.cc (right): https://codereview.chromium.org/1365563003/diff/20001/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc#newcode637 extensions/browser/api/guest_view/web_view/web_view_internal_api.cc:637: if (search_text.empty()) { I don't ...
5 years, 2 months ago (2015-09-26 00:14:34 UTC) #5
Lei Zhang
https://codereview.chromium.org/1365563003/diff/20001/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc File extensions/browser/api/guest_view/web_view/web_view_internal_api.cc (right): https://codereview.chromium.org/1365563003/diff/20001/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc#newcode637 extensions/browser/api/guest_view/web_view/web_view_internal_api.cc:637: if (search_text.empty()) { On 2015/09/26 00:14:34, Fady Samuel wrote: ...
5 years, 2 months ago (2015-09-26 00:22:01 UTC) #6
Fady Samuel
On 2015/09/26 00:22:01, Lei Zhang wrote: > https://codereview.chromium.org/1365563003/diff/20001/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc > File extensions/browser/api/guest_view/web_view/web_view_internal_api.cc > (right): > > ...
5 years, 2 months ago (2015-09-26 00:32:57 UTC) #7
Lei Zhang
Oh good, we have some WebViewAsynchronousFindApisTests. Was getting worried there with no bots going red. ...
5 years, 2 months ago (2015-09-26 01:06:27 UTC) #8
raymes
lgtm
5 years, 2 months ago (2015-09-27 22:50:37 UTC) #9
Charlie Reis
content/ LGTM. https://codereview.chromium.org/1365563003/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1365563003/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode2728 content/browser/web_contents/web_contents_impl.cc:2728: NOTREACHED(); I take it there's some other ...
5 years, 2 months ago (2015-09-28 19:35:18 UTC) #10
Lei Zhang
If I read testFindAllEmptyString correctly, the current expectation is to succeed and return no results. ...
5 years, 2 months ago (2015-09-28 20:01:51 UTC) #11
Lei Zhang
Paul, any thoughts on this?
5 years, 2 months ago (2015-10-07 23:41:50 UTC) #12
paulmeyer
On 2015/10/07 23:41:50, Lei Zhang wrote: > Paul, any thoughts on this? I agree that ...
5 years, 2 months ago (2015-10-08 13:49:41 UTC) #13
Lei Zhang
... and a month later, I finally got around to this CL and actually fixing ...
5 years, 1 month ago (2015-11-11 07:37:31 UTC) #14
Lei Zhang
+boliu for android_webview/OWNERS, since he touched android_webview/browser/find_helper.* in http://crrev.com/186827 and forgot to remove some dead ...
5 years, 1 month ago (2015-11-11 07:47:53 UTC) #17
boliu
On 2015/11/11 07:47:53, Lei Zhang wrote: > +boliu for android_webview/OWNERS, since he touched > android_webview/browser/find_helper.* ...
5 years, 1 month ago (2015-11-11 16:35:01 UTC) #18
Lei Zhang
Paul/Fady: PTAL at extensions/
5 years, 1 month ago (2015-11-11 16:56:55 UTC) #19
Fady Samuel
On 2015/11/11 16:56:55, Lei Zhang wrote: > Paul/Fady: PTAL at extensions/ I'll let Paul chime ...
5 years, 1 month ago (2015-11-12 18:25:54 UTC) #20
paulmeyer
On 2015/11/12 18:25:54, Fady Samuel wrote: > On 2015/11/11 16:56:55, Lei Zhang wrote: > > ...
5 years, 1 month ago (2015-11-12 18:34:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1365563003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1365563003/200001
5 years, 1 month ago (2015-11-12 21:41:56 UTC) #24
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 1 month ago (2015-11-12 23:01:42 UTC) #25
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 23:02:38 UTC) #26
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/6057a6b26a758d3542b9d74579e4e517b49244a9
Cr-Commit-Position: refs/heads/master@{#359419}

Powered by Google App Engine
This is Rietveld 408576698