-
samarth@chromium.org authored
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 Review URL: https://chromiumcodereview.appspot.com/15001020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203035 0039d316-1c4b-4281-b951-d872f2087c98
2ff3ed41