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

Issue 12895007: Send onsubmit query down to the instant extended overlay page when a navigation is performed from t… (Closed)

Created:
7 years, 9 months ago by robertshield
Modified:
7 years, 8 months ago
CC:
chromium-reviews, melevin, dhollowa+watch_chromium.org, dominich, David Black, samarth+watch_chromium.org, Jered
Visibility:
Public.

Description

Send onsubmit query down to the instant extended overlay page when a navigation is performed from the omnibox. This should give the page sufficient information to close the dropdown. BUG=180091 TEST=NONE Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193809

Patch Set 1 #

Total comments: 4

Patch Set 2 : Send submit to the instant_tab_ rather than the overlsy_. #

Total comments: 1

Patch Set 3 : Also send submit events to overlay_ on navigation. #

Total comments: 2

Patch Set 4 : Update OnNavigate comment. #

Total comments: 2

Patch Set 5 : Don't send submit events for non-url navigations. #

Total comments: 5

Patch Set 6 : Don't send url. Only send for current tab. #

Total comments: 8

Patch Set 7 : Sreeram's feedback. #

Patch Set 8 : #

Total comments: 2

Patch Set 9 : Browser test. #

Patch Set 10 : OnSubmit tweak + comment. #

Total comments: 4

Patch Set 11 : IPC-based-browsertest. #

Patch Set 12 : Revert to original browser test, add comment re potential brittleness for posterity. #

Total comments: 2

Patch Set 13 : Update browser test, don't call Reset on submit. #

Patch Set 14 : Check return value of UpdateSearchState. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -9 lines) Patch
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +58 lines, -3 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +13 lines, -4 lines 0 comments Download
M chrome/test/data/instant_extended.html View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 38 (0 generated)
robertshield
Hi David, is this roughly what you had in mind?
7 years, 9 months ago (2013-03-21 21:22:12 UTC) #1
David Black
Seems like the right approach to me. https://codereview.chromium.org/12895007/diff/1/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/12895007/diff/1/chrome/browser/ui/search/instant_controller.cc#newcode614 chrome/browser/ui/search/instant_controller.cc:614: if (!extended_enabled_ ...
7 years, 9 months ago (2013-03-21 21:36:10 UTC) #2
samarth
https://codereview.chromium.org/12895007/diff/1/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/12895007/diff/1/chrome/browser/ui/search/instant_controller.cc#newcode614 chrome/browser/ui/search/instant_controller.cc:614: if (!extended_enabled_ || !overlay_) On 2013/03/21 21:36:10, David Black ...
7 years, 9 months ago (2013-03-21 21:39:59 UTC) #3
robertshield
Switched to sending submit to the instant_tab_. This doesn't by itself seem to fix the ...
7 years, 9 months ago (2013-03-22 03:12:55 UTC) #4
gideonwald
On 2013/03/22 03:12:55, robertshield wrote: > Switched to sending submit to the instant_tab_. This doesn't ...
7 years, 9 months ago (2013-03-22 06:32:37 UTC) #5
David Black
Yes, the GWS-side half is submitted but not live yet. https://codereview.chromium.org/12895007/diff/4002/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/12895007/diff/4002/chrome/browser/ui/search/instant_controller.cc#newcode617 ...
7 years, 9 months ago (2013-03-22 19:02:37 UTC) #6
robertshield
On 2013/03/22 19:02:37, David Black wrote: > Yes, the GWS-side half is submitted but not ...
7 years, 9 months ago (2013-03-22 19:38:31 UTC) #7
robertshield
On 2013/03/22 19:38:31, robertshield wrote: > On 2013/03/22 19:02:37, David Black wrote: > > Yes, ...
7 years, 9 months ago (2013-03-22 19:38:50 UTC) #8
robertshield
On 2013/03/22 19:38:50, robertshield wrote: > On 2013/03/22 19:38:31, robertshield wrote: > > On 2013/03/22 ...
7 years, 9 months ago (2013-03-25 16:57:13 UTC) #9
robertshield
+Peter for OWNERS on the change to the omnibox code.
7 years, 9 months ago (2013-03-25 17:30:40 UTC) #10
Peter Kasting
LGTM https://codereview.chromium.org/12895007/diff/12001/chrome/browser/ui/search/instant_controller.h File chrome/browser/ui/search/instant_controller.h (right): https://codereview.chromium.org/12895007/diff/12001/chrome/browser/ui/search/instant_controller.h#newcode124 chrome/browser/ui/search/instant_controller.h:124: // Called when the user has navigated to ...
7 years, 9 months ago (2013-03-25 18:47:38 UTC) #11
robertshield
Thanks! https://codereview.chromium.org/12895007/diff/12001/chrome/browser/ui/search/instant_controller.h File chrome/browser/ui/search/instant_controller.h (right): https://codereview.chromium.org/12895007/diff/12001/chrome/browser/ui/search/instant_controller.h#newcode124 chrome/browser/ui/search/instant_controller.h:124: // Called when the user has navigated to ...
7 years, 9 months ago (2013-03-25 19:14:30 UTC) #12
David Black
LGTM
7 years, 9 months ago (2013-03-25 21:09:12 UTC) #13
sreeram
samarth -> sreeram Will take a look shortly.
7 years, 9 months ago (2013-03-25 21:34:43 UTC) #14
sreeram
Please add a browser test as well. https://codereview.chromium.org/12895007/diff/19002/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/12895007/diff/19002/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode716 chrome/browser/ui/omnibox/omnibox_edit_model.cc:716: instant->OnNavigate(autocomplete_controller_->input().text()); Instant ...
7 years, 9 months ago (2013-03-26 17:43:46 UTC) #15
robertshield
Sreeram, what do you think of this approach? Working on browser test next. https://codereview.chromium.org/12895007/diff/19002/chrome/browser/ui/omnibox/omnibox_edit_model.cc File ...
7 years, 9 months ago (2013-03-26 19:19:24 UTC) #16
sreeram
https://codereview.chromium.org/12895007/diff/28001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/12895007/diff/28001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode716 chrome/browser/ui/omnibox/omnibox_edit_model.cc:716: if (match.transition == content::PAGE_TRANSITION_TYPED) { Surprisingly, this works. :) ...
7 years, 9 months ago (2013-03-26 20:05:42 UTC) #17
gideonwald
On 2013/03/26 20:05:42, sreeram wrote: > https://codereview.chromium.org/12895007/diff/28001/chrome/browser/ui/omnibox/omnibox_edit_model.cc > File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): > > https://codereview.chromium.org/12895007/diff/28001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode716 > ...
7 years, 9 months ago (2013-03-27 18:01:19 UTC) #18
sreeram
On 2013/03/27 18:01:19, gideonwald wrote: > Well, we do want to clear the suggestions on ...
7 years, 9 months ago (2013-03-27 18:24:51 UTC) #19
jeremycho
On 2013/03/27 18:24:51, sreeram wrote: > On 2013/03/27 18:01:19, gideonwald wrote: > > Well, we ...
7 years, 9 months ago (2013-03-27 20:22:19 UTC) #20
robertshield
ptal, browser test still coming. https://codereview.chromium.org/12895007/diff/28001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/12895007/diff/28001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode716 chrome/browser/ui/omnibox/omnibox_edit_model.cc:716: if (match.transition == content::PAGE_TRANSITION_TYPED) ...
7 years, 9 months ago (2013-03-27 21:44:04 UTC) #21
Peter Kasting
https://codereview.chromium.org/12895007/diff/28001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/12895007/diff/28001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode716 chrome/browser/ui/omnibox/omnibox_edit_model.cc:716: if (match.transition == content::PAGE_TRANSITION_TYPED) { On 2013/03/27 21:44:05, robertshield ...
7 years, 9 months ago (2013-03-27 21:51:47 UTC) #22
sreeram
https://codereview.chromium.org/12895007/diff/34002/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/12895007/diff/34002/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode716 chrome/browser/ui/omnibox/omnibox_edit_model.cc:716: // BrowserInstantController::OpenInstant You can remove the cagey wording here. ...
7 years, 8 months ago (2013-04-01 16:22:01 UTC) #23
robertshield
https://codereview.chromium.org/12895007/diff/34002/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/12895007/diff/34002/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode716 chrome/browser/ui/omnibox/omnibox_edit_model.cc:716: // BrowserInstantController::OpenInstant On 2013/04/01 16:22:01, sreeram wrote: > You ...
7 years, 8 months ago (2013-04-01 18:14:49 UTC) #24
sreeram
Looks good! Please add the browser test you mentioned. https://codereview.chromium.org/12895007/diff/46001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/12895007/diff/46001/chrome/renderer/searchbox/searchbox.cc#newcode202 chrome/renderer/searchbox/searchbox.cc:202: ...
7 years, 8 months ago (2013-04-01 20:08:45 UTC) #25
robertshield
Added browser test, PTAL, thanks! https://codereview.chromium.org/12895007/diff/46001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/12895007/diff/46001/chrome/renderer/searchbox/searchbox.cc#newcode202 chrome/renderer/searchbox/searchbox.cc:202: selection_start_ = selection_end_ = ...
7 years, 8 months ago (2013-04-08 16:02:47 UTC) #26
sreeram
https://codereview.chromium.org/12895007/diff/52001/chrome/browser/ui/search/instant_extended_browsertest.cc File chrome/browser/ui/search/instant_extended_browsertest.cc (right): https://codereview.chromium.org/12895007/diff/52001/chrome/browser/ui/search/instant_extended_browsertest.cc#newcode497 chrome/browser/ui/search/instant_extended_browsertest.cc:497: GetIntFromJS(instant()->instant_tab()->contents(), "submitCount", I'm mildly worried that this is brittle. ...
7 years, 8 months ago (2013-04-08 16:20:38 UTC) #27
robertshield
https://codereview.chromium.org/12895007/diff/52001/chrome/browser/ui/search/instant_extended_browsertest.cc File chrome/browser/ui/search/instant_extended_browsertest.cc (right): https://codereview.chromium.org/12895007/diff/52001/chrome/browser/ui/search/instant_extended_browsertest.cc#newcode497 chrome/browser/ui/search/instant_extended_browsertest.cc:497: GetIntFromJS(instant()->instant_tab()->contents(), "submitCount", On 2013/04/08 16:20:38, sreeram wrote: > I'm ...
7 years, 8 months ago (2013-04-09 14:49:29 UTC) #28
sreeram
https://codereview.chromium.org/12895007/diff/52001/chrome/browser/ui/search/instant_extended_browsertest.cc File chrome/browser/ui/search/instant_extended_browsertest.cc (right): https://codereview.chromium.org/12895007/diff/52001/chrome/browser/ui/search/instant_extended_browsertest.cc#newcode497 chrome/browser/ui/search/instant_extended_browsertest.cc:497: GetIntFromJS(instant()->instant_tab()->contents(), "submitCount", On 2013/04/09 14:49:29, robertshield wrote: > On ...
7 years, 8 months ago (2013-04-09 16:39:41 UTC) #29
robertshield
On 2013/04/09 16:39:41, sreeram wrote: > https://codereview.chromium.org/12895007/diff/52001/chrome/browser/ui/search/instant_extended_browsertest.cc > File chrome/browser/ui/search/instant_extended_browsertest.cc (right): > > https://codereview.chromium.org/12895007/diff/52001/chrome/browser/ui/search/instant_extended_browsertest.cc#newcode497 > ...
7 years, 8 months ago (2013-04-09 17:37:33 UTC) #30
sreeram
On 2013/04/09 17:37:33, robertshield wrote: > I posted a patch with the IPC-observer test to ...
7 years, 8 months ago (2013-04-09 18:02:31 UTC) #31
robertshield
On 2013/04/09 18:02:31, sreeram wrote: > On 2013/04/09 17:37:33, robertshield wrote: > > I posted ...
7 years, 8 months ago (2013-04-09 18:44:48 UTC) #32
sreeram
lgtm https://codereview.chromium.org/12895007/diff/67001/chrome/browser/ui/search/instant_extended_browsertest.cc File chrome/browser/ui/search/instant_extended_browsertest.cc (right): https://codereview.chromium.org/12895007/diff/67001/chrome/browser/ui/search/instant_extended_browsertest.cc#newcode502 chrome/browser/ui/search/instant_extended_browsertest.cc:502: EXPECT_EQ(2, submit_count); Nit: Check that searchbox.value hasn't changed ...
7 years, 8 months ago (2013-04-09 18:49:40 UTC) #33
robertshield
Done and thanks for the reminder on searchbox.value, turns out Searchbox::Submit was still calling Reset(). ...
7 years, 8 months ago (2013-04-10 14:17:15 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/12895007/71001
7 years, 8 months ago (2013-04-11 15:27:24 UTC) #35
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-11 15:52:00 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/12895007/86002
7 years, 8 months ago (2013-04-11 21:33:04 UTC) #37
commit-bot: I haz the power
7 years, 8 months ago (2013-04-12 00:39:36 UTC) #38
Message was sent while issue was closed.
Change committed as 193809

Powered by Google App Engine
This is Rietveld 408576698