DescriptionInstantExtended: disallow setValue() without omnibox focus.
Don't allow the the page to call setValue() if the omnibox doesn't have focus.
This breaks the "clearing out gray text" usecase (when the user clicks on
the suggestion corresponding to a gray-text completion), but we aren't
worried about it because we are aiming for a launch without any gray text.
We'll re-enable setValue() in the general case when we handle it properly.
Also disable the focus() API to prevent a trivial workaround (where the page
focuses the omnibox and then calls setValue).
BUG=229193
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203035
Patch Set 1 #Patch Set 2 : Also disable focus. #Patch Set 3 : Rebase. #
Total comments: 2
Patch Set 4 : Rebase. #Patch Set 5 : Take out exception for gray text. #
Total comments: 2
Patch Set 6 : Fix typo. #Messages
Total messages: 9 (0 generated)
|