DescriptionFix search terms handling on commit.
The server calls setValue() with the query selected when a user clicks on a query suggestion. When the page is in mode search, just update the omnibox text with the supplied query.
Also, fix what query we use in the VirtualURL on commit: use the user text if committing because of ENTER, and use the user text + the gray text if committing because of click on the preview.
Together, these should fix most of the flickering and wrong-text-in-the-omnibox issues. A better and more robust fix was started by Mathieu in crrev.com/11415292 but that approach will need some restructuring before it can land.
BUG=165710, 159326
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173526
Patch Set 1 #
Total comments: 4
Patch Set 2 : Merge change from Mathieu. #Patch Set 3 : Update comments. #Patch Set 4 : Rebase. #
Total comments: 4
Patch Set 5 : Rebase. #Messages
Total messages: 12 (0 generated)
|