зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1288178 - add Test Pilot to mozAddonManager allow list r=rhelmer
MozReview-Commit-ID: Klx75vFhKUI --HG-- extra : rebase_source : d488675eea0504b4af4fd1cb9278a44bb9564fbe
This commit is contained in:
Родитель
32b5a3e1dd
Коммит
3315f2a277
|
@ -67,10 +67,11 @@ const TOOLKIT_ID = "toolkit@mozilla.org";
|
|||
|
||||
const VALID_TYPES_REGEXP = /^[\w\-]+$/;
|
||||
|
||||
const WEBAPI_INSTALL_HOSTS = ["addons.mozilla.org", "addons.cdn.mozilla.net"];
|
||||
const WEBAPI_INSTALL_HOSTS = ["addons.mozilla.org", "addons.cdn.mozilla.net", "testpilot.firefox.com"];
|
||||
const WEBAPI_TEST_INSTALL_HOSTS = [
|
||||
"addons.allizom.org", "addons-stage-cdn.allizom.org",
|
||||
"addons-dev.allizom.org", "addons-dev-cdn-allizom.org",
|
||||
"testpilot.stage.mozaws.net", "testpilot.dev.mozaws.net",
|
||||
"example.com",
|
||||
];
|
||||
|
||||
|
|
|
@ -40,7 +40,8 @@ AddonManagerWebAPI::IsValidSite(nsIURI* uri)
|
|||
}
|
||||
|
||||
if (host.Equals("addons.mozilla.org") ||
|
||||
host.Equals("discovery.addons.mozilla.org")) {
|
||||
host.Equals("discovery.addons.mozilla.org") ||
|
||||
host.Equals("testpilot.firefox.com")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -50,6 +51,8 @@ AddonManagerWebAPI::IsValidSite(nsIURI* uri)
|
|||
host.Equals("discovery.addons.allizom.org") ||
|
||||
host.Equals("addons-dev.allizom.org") ||
|
||||
host.Equals("discovery.addons-dev.allizom.org") ||
|
||||
host.Equals("testpilot.stage.mozaws.net") ||
|
||||
host.Equals("testpilot.dev.mozaws.net") ||
|
||||
host.Equals("example.com")) {
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче