diff options
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_input.cc')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_input.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_input.cc b/chrome/browser/autocomplete/autocomplete_input.cc index ea42851..4672f0c 100644 --- a/chrome/browser/autocomplete/autocomplete_input.cc +++ b/chrome/browser/autocomplete/autocomplete_input.cc @@ -198,9 +198,12 @@ AutocompleteInput::Type AutocompleteInput::Parse( // handlable schemes (e.g. "javascript") may be treated as "blocked" by the // external protocol handler because we don't want pages to open them, but // users still can. + // Note that the protocol handler needs to be informed that omnibox input + // should always be considered "user gesture-triggered", lest it always + // return BLOCK. ExternalProtocolHandler::BlockState block_state = ExternalProtocolHandler::GetBlockState( - base::UTF16ToUTF8(parsed_scheme)); + base::UTF16ToUTF8(parsed_scheme), true); switch (block_state) { case ExternalProtocolHandler::DONT_BLOCK: return return_value_for_non_http_url; |