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

Issue 11415292: [Search] No longer reverting omnibox text on instant search (Closed)

Created:
8 years ago by Mathieu
Modified:
8 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, samarth
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

[Search] No longer reverting omnibox text on instant search Avoids flash of old text when committing an instant search. BUG=153477, 159326, 165710 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173069

Patch Set 1 #

Patch Set 2 : Sync plumbing for search_terms #

Patch Set 3 : More tests #

Total comments: 6

Patch Set 4 : addressed comments #

Total comments: 2

Patch Set 5 : InstantController logic #

Patch Set 6 : session_types comment #

Total comments: 18

Patch Set 7 : Addressed comments, fixed query refinement #

Patch Set 8 : Moved to TemplateURLService #

Patch Set 9 : Readded line #

Patch Set 10 : indent #

Total comments: 20

Patch Set 11 : bracket #

Patch Set 12 : addressed comments #

Patch Set 13 : fix test #

Patch Set 14 : fix tests #

Total comments: 5

Patch Set 15 : removed android_webview changes #

Patch Set 16 : rebase #

Patch Set 17 : Gutted #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M chrome/browser/instant/instant_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 38 (0 generated)
akalin
https://codereview.chromium.org/11415292/diff/2002/chrome/browser/sessions/session_types.cc File chrome/browser/sessions/session_types.cc (right): https://codereview.chromium.org/11415292/diff/2002/chrome/browser/sessions/session_types.cc#newcode262 chrome/browser/sessions/session_types.cc:262: !iterator->ReadString16(&search_terms_) || this isn't backwards compatible. it needs to ...
8 years ago (2012-12-05 19:40:27 UTC) #1
Mathieu
Thanks! https://chromiumcodereview.appspot.com/11415292/diff/2002/chrome/browser/sessions/session_types.cc File chrome/browser/sessions/session_types.cc (right): https://chromiumcodereview.appspot.com/11415292/diff/2002/chrome/browser/sessions/session_types.cc#newcode262 chrome/browser/sessions/session_types.cc:262: !iterator->ReadString16(&search_terms_) || On 2012/12/05 19:40:27, akalin wrote: > ...
8 years ago (2012-12-05 20:42:16 UTC) #2
akalin
still have to look again, but one comment https://codereview.chromium.org/11415292/diff/11001/chrome/browser/sessions/session_types.cc File chrome/browser/sessions/session_types.cc (right): https://codereview.chromium.org/11415292/diff/11001/chrome/browser/sessions/session_types.cc#newcode308 chrome/browser/sessions/session_types.cc:308: // ...
8 years ago (2012-12-05 23:35:44 UTC) #3
Mathieu
This is ready for your consideration. sreeram: chrome/browser/instant/instant_controller.cc chrome/browser/ui/toolbar/toolbar_model_impl.cc content/browser/web_contents/navigation_entry_impl* content/public/browser/navigation_entry.h akalin: android_webview/native/state_serializer* chrome/browser/sessions/session_types* Thanks! ...
8 years ago (2012-12-06 21:50:18 UTC) #4
Mathieu
Replace "sreeram" with "jered" in the above review email :) Thanks!
8 years ago (2012-12-06 22:05:10 UTC) #5
Jered
On 2012/12/06 22:05:10, Mathieu Perreault wrote: > Replace "sreeram" with "jered" in the above review ...
8 years ago (2012-12-06 22:26:29 UTC) #6
akalin
https://codereview.chromium.org/11415292/diff/26001/android_webview/native/state_serializer.cc File android_webview/native/state_serializer.cc (right): https://codereview.chromium.org/11415292/diff/26001/android_webview/native/state_serializer.cc#newcode214 android_webview/native/state_serializer.cc:214: string16 search_terms; will this ever try to load 'old' ...
8 years ago (2012-12-06 23:14:46 UTC) #7
Jered
https://codereview.chromium.org/11415292/diff/26001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11415292/diff/26001/chrome/browser/instant/instant_controller.cc#newcode455 chrome/browser/instant/instant_controller.cc:455: search_terms += last_suggestion_.text; Indent.
8 years ago (2012-12-07 00:16:02 UTC) #8
samarth
lgtm for instant_controller.cc Sending over to sky for instant OWNERS.
8 years ago (2012-12-07 01:29:42 UTC) #9
sky
https://codereview.chromium.org/11415292/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc File chrome/browser/ui/toolbar/toolbar_model_impl.cc (left): https://codereview.chromium.org/11415292/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc#oldcode1 chrome/browser/ui/toolbar/toolbar_model_impl.cc:1: // Copyright 2012 The Chromium Authors. All rights reserved. ...
8 years ago (2012-12-07 16:29:25 UTC) #10
David Black
FYI, I patched this in and was still able to get an incorrect search query ...
8 years ago (2012-12-07 18:42:38 UTC) #11
Mathieu
On 2012/12/07 18:42:38, David Black wrote: > FYI, I patched this in and was still ...
8 years ago (2012-12-07 18:43:45 UTC) #12
Mathieu
Thanks for the comments. https://chromiumcodereview.appspot.com/11415292/diff/26001/android_webview/native/state_serializer.cc File android_webview/native/state_serializer.cc (right): https://chromiumcodereview.appspot.com/11415292/diff/26001/android_webview/native/state_serializer.cc#newcode214 android_webview/native/state_serializer.cc:214: string16 search_terms; On 2012/12/06 23:14:46, ...
8 years ago (2012-12-11 00:30:17 UTC) #13
Mathieu
On 2012/12/11 00:30:17, Mathieu Perreault wrote: > Thanks for the comments. > > https://chromiumcodereview.appspot.com/11415292/diff/26001/android_webview/native/state_serializer.cc > ...
8 years ago (2012-12-11 22:04:23 UTC) #14
sky
https://chromiumcodereview.appspot.com/11415292/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc File chrome/browser/ui/toolbar/toolbar_model_impl.cc (right): https://chromiumcodereview.appspot.com/11415292/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc#newcode63 chrome/browser/ui/toolbar/toolbar_model_impl.cc:63: string16 search_terms = TryToExtractSearchTermsFromURL(); On 2012/12/11 00:30:17, Mathieu Perreault ...
8 years ago (2012-12-11 22:59:16 UTC) #15
Mathieu
Thanks sky, please have another look. https://chromiumcodereview.appspot.com/11415292/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc File chrome/browser/ui/toolbar/toolbar_model_impl.cc (right): https://chromiumcodereview.appspot.com/11415292/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc#newcode63 chrome/browser/ui/toolbar/toolbar_model_impl.cc:63: string16 search_terms = ...
8 years ago (2012-12-12 19:37:52 UTC) #16
sky
https://chromiumcodereview.appspot.com/11415292/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc File chrome/browser/ui/toolbar/toolbar_model_impl.cc (right): https://chromiumcodereview.appspot.com/11415292/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc#newcode63 chrome/browser/ui/toolbar/toolbar_model_impl.cc:63: string16 search_terms = TryToExtractSearchTermsFromURL(); On 2012/12/12 19:37:53, Mathieu Perreault ...
8 years ago (2012-12-12 21:18:05 UTC) #17
Mathieu
Thanks! https://chromiumcodereview.appspot.com/11415292/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc File chrome/browser/ui/toolbar/toolbar_model_impl.cc (right): https://chromiumcodereview.appspot.com/11415292/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc#newcode63 chrome/browser/ui/toolbar/toolbar_model_impl.cc:63: string16 search_terms = TryToExtractSearchTermsFromURL(); On 2012/12/12 21:18:05, sky ...
8 years ago (2012-12-12 21:32:02 UTC) #18
sky
Ok, I get now why you want to persist this state to disk. https://chromiumcodereview.appspot.com/11415292/diff/38002/chrome/browser/search_engines/template_url_service.cc File ...
8 years ago (2012-12-12 22:41:56 UTC) #19
Mathieu
Thanks! https://chromiumcodereview.appspot.com/11415292/diff/38002/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): https://chromiumcodereview.appspot.com/11415292/diff/38002/chrome/browser/search_engines/template_url_service.cc#newcode443 chrome/browser/search_engines/template_url_service.cc:443: string16 TemplateURLService::TryToExtractSearchTermsFromURL(GURL url) { On 2012/12/12 22:41:57, sky ...
8 years ago (2012-12-12 23:37:24 UTC) #20
sky
Fix the if and LGTM as long you are going to move the function. https://chromiumcodereview.appspot.com/11415292/diff/38002/chrome/browser/search_engines/template_url_service.cc ...
8 years ago (2012-12-13 00:48:18 UTC) #21
Mathieu
On 2012/12/13 00:48:18, sky wrote: > Fix the if and LGTM as long you are ...
8 years ago (2012-12-13 01:47:56 UTC) #22
Mathieu
On 2012/12/13 01:47:56, Mathieu Perreault wrote: > On 2012/12/13 00:48:18, sky wrote: > > Fix ...
8 years ago (2012-12-13 02:09:51 UTC) #23
joth
+boliu, original author for this. https://codereview.chromium.org/11415292/diff/45002/android_webview/native/state_serializer.cc File android_webview/native/state_serializer.cc (right): https://codereview.chromium.org/11415292/diff/45002/android_webview/native/state_serializer.cc#newcode168 android_webview/native/state_serializer.cc:168: return false; fwiw the ...
8 years ago (2012-12-13 02:11:48 UTC) #24
boliu
If you do decide to add it for webview. You will need android_fyi_dbg trybot to ...
8 years ago (2012-12-13 02:26:45 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/11415292/53001
8 years ago (2012-12-13 04:38:15 UTC) #26
commit-bot: I haz the power
Presubmit check for 11415292-53001 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-13 04:38:22 UTC) #27
Mathieu
On 2012/12/13 04:38:22, I haz the power (commit-bot) wrote: > Presubmit check for 11415292-53001 failed ...
8 years ago (2012-12-13 04:41:44 UTC) #28
jam
On 2012/12/13 04:41:44, Mathieu Perreault wrote: > On 2012/12/13 04:38:22, I haz the power (commit-bot) ...
8 years ago (2012-12-13 08:44:22 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/11415292/51002
8 years ago (2012-12-13 18:50:03 UTC) #30
Mathieu
On 2012/12/13 18:50:03, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
8 years ago (2012-12-13 20:08:11 UTC) #31
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) nacl_integration
8 years ago (2012-12-13 21:09:40 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/11415292/51002
8 years ago (2012-12-14 00:41:21 UTC) #33
commit-bot: I haz the power
Change committed as 173069
8 years ago (2012-12-14 03:37:28 UTC) #34
Jered
On 2012/12/14 03:37:28, I haz the power (commit-bot) wrote: > Change committed as 173069 This ...
8 years ago (2012-12-14 23:50:24 UTC) #35
Mathieu
On 2012/12/14 23:50:24, Jered wrote: > On 2012/12/14 03:37:28, I haz the power (commit-bot) wrote: ...
8 years ago (2012-12-17 16:25:20 UTC) #36
Jered
On 2012/12/17 16:25:20, Mathieu Perreault wrote: > On 2012/12/14 23:50:24, Jered wrote: > > On ...
8 years ago (2012-12-18 00:56:29 UTC) #37
Jered
8 years ago (2012-12-18 20:01:53 UTC) #38
Message was sent while issue was closed.
On 2012/12/18 00:56:29, Jered wrote:
> On 2012/12/17 16:25:20, Mathieu Perreault wrote:
> > On 2012/12/14 23:50:24, Jered wrote:
> > > On 2012/12/14 03:37:28, I haz the power (commit-bot) wrote:
> > > > Change committed as 173069
> > > 
> > > This change broke refinements from a committed results page. I am
preparing
> a
> > > rollback.
> > 
> > Several cases are handled in
https://chromiumcodereview.appspot.com/11570020/
> > now. Not sure why this simple change would break refinement. Have you tested
> > with the change above?
> 
> I am not sure, either; we noticed the problem at trunk and looked at recently
> committed changes to determine that this was the cause. I will patch and test
> this again tomorrow.

I can reproduce the problem with this patch. Type a query, press enter, then
type a new query and press enter. instead of results, you see a blank page.

The cause seems to be that the page is reading a blank query after OnSubmit
fires and is showing an empty page instead of the results (which it starts
rendering and then aborts). I can only imagine that the RevertAll call is doing
"something" which prevents this, but the control flow is so convoluted, I have
no idea what.

Powered by Google App Engine
This is Rietveld 408576698