DescriptionFix handling of inline autocomplete text vis-a-vis Instant.
Consider the following scenario:
1. Type "g" in the omnibox.
--> The omnibox inline autocompletes "oogle.com".
2. Hit Tab.
--> You're now in keyword mode.
Here, inline_autocomplete_text_ is still "oogle.com", though the display text
is a blank string. The previous code caused a crash. Now, we check properly
that the inline text is a suffix of the display text.
Arguably, the inline text should always be a suffix of the display text, say by
clearing it in OmniboxEditModel::AcceptKeyword(): http://crbug.com/141890
R=pkasting@google.com
BUG=141878
TEST=Scenario in CL description above shouldn't crash.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151146
Patch Set 1 #Patch Set 2 : Actually builds now. #Patch Set 3 : Use model text instead of view text #
Total comments: 2
Patch Set 4 : Updated comment #Messages
Total messages: 10 (0 generated)
|