summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/user_script_master.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-19 05:15:15 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-19 05:15:15 +0000
commit838b943ae327185223b15337b62b3c5f41a70354 (patch)
treef6da26326065e9c760c14f0f00eef4bdacace25b /chrome/browser/extensions/user_script_master.cc
parent3f79789f46d6b5d1799a82371f478cb3a15d7e07 (diff)
downloadchromium_src-838b943ae327185223b15337b62b3c5f41a70354.zip
chromium_src-838b943ae327185223b15337b62b3c5f41a70354.tar.gz
chromium_src-838b943ae327185223b15337b62b3c5f41a70354.tar.bz2
Allow all URLPatterns to have ports.
This is a minor breaking change, but after looking at the data, I don't think it's worth maintaining backward compat. I will mail the authors of the extensions that are affected to warn them. BUG=104104 Review URL: http://codereview.chromium.org/8970020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114957 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/user_script_master.cc')
-rw-r--r--chrome/browser/extensions/user_script_master.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/extensions/user_script_master.cc b/chrome/browser/extensions/user_script_master.cc
index 1d08bea..2a11f42 100644
--- a/chrome/browser/extensions/user_script_master.cc
+++ b/chrome/browser/extensions/user_script_master.cc
@@ -112,8 +112,7 @@ bool UserScriptMaster::ScriptReloader::ParseMetadataHeader(
} else if (GetDeclarationValue(line, kDescriptionDeclaration, &value)) {
script->set_description(value);
} else if (GetDeclarationValue(line, kMatchDeclaration, &value)) {
- URLPattern pattern(URLPattern::IGNORE_PORTS,
- UserScript::kValidUserScriptSchemes);
+ URLPattern pattern(UserScript::kValidUserScriptSchemes);
if (URLPattern::PARSE_SUCCESS != pattern.Parse(value))
return false;
script->add_url_pattern(pattern);