Skip to content

Commit 1985358

Browse files
committed
Bug 1644322 remove discovery.amo as valid host in mozAddonManager r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D82053
1 parent 4031f23 commit 1985358

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

toolkit/mozapps/extensions/AddonManagerWebAPI.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,14 @@ static bool IsValidHost(const nsACString& host) {
2929
return false;
3030
}
3131

32-
if (host.EqualsLiteral("addons.mozilla.org") ||
33-
host.EqualsLiteral("discovery.addons.mozilla.org")) {
32+
if (host.EqualsLiteral("addons.mozilla.org")) {
3433
return true;
3534
}
3635

3736
// When testing allow access to the developer sites.
3837
if (Preferences::GetBool("extensions.webapi.testing", false)) {
3938
if (host.LowerCaseEqualsLiteral("addons.allizom.org") ||
40-
host.LowerCaseEqualsLiteral("discovery.addons.allizom.org") ||
4139
host.LowerCaseEqualsLiteral("addons-dev.allizom.org") ||
42-
host.LowerCaseEqualsLiteral("discovery.addons-dev.allizom.org") ||
4340
host.LowerCaseEqualsLiteral("example.com")) {
4441
return true;
4542
}

0 commit comments

Comments
 (0)