Only accept HTTP and HTTPS urls for opensearch descriptor.
commitc4b8fd74e67dfb23ef150c6aa313cb506746f06f
authormeacer <meacer@chromium.org>
Tue, 24 Feb 2015 01:30:08 +0000 (23 17:30 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 24 Feb 2015 01:31:17 +0000 (24 01:31 +0000)
tree45c110e25112f9e9047ab6c6fd1a56f0b643d063
parentb9da284b42d4a3b9498d64f1c61452c5f5ae4ff2
Only accept HTTP and HTTPS urls for opensearch descriptor.

This CL prevents http: or https: urls from referring to file: urls as search descriptor xmls.
Allowing urls to refer to other urls with the same scheme has been considered (e.g. a file: url
referring to an OSDD xml from a file: url), but this currently doesn't work for file: urls
because of http://b/863583, so is not implemented here.

BUG=429838

Review URL: https://codereview.chromium.org/917313004

Cr-Commit-Position: refs/heads/master@{#317723}
chrome/browser/ui/search_engines/search_engine_tab_helper.cc
chrome/browser/ui/search_engines/search_engine_tab_helper_browsertest.cc [new file with mode: 0644]
chrome/chrome_tests.gypi