Bug 1523980 Revoke special testpilot permissions r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D18768

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew Swan 2019-02-06 22:21:01 +00:00
parent dc58885cdc
commit ee2283d446
6 changed files with 5 additions and 11 deletions

View File

@ -17,7 +17,6 @@ origin uitour 1 about:newtab
# XPInstall
origin install 1 https://addons.mozilla.org
origin install 1 https://testpilot.firefox.com
# Remote troubleshooting
origin remote-troubleshooting 1 https://input.mozilla.org

View File

@ -72,8 +72,7 @@ using image::imgDrawingParams;
nsString addonId;
if (NS_SUCCEEDED(principal->GetAddonId(addonId))) {
if (StringEndsWith(addonId, NS_LITERAL_STRING("@mozilla.org")) ||
StringEndsWith(addonId, NS_LITERAL_STRING("@mozilla.com")) ||
StringBeginsWith(addonId, NS_LITERAL_STRING("@testpilot-"))) {
StringEndsWith(addonId, NS_LITERAL_STRING("@mozilla.com"))) {
return true;
}
}

View File

@ -184,7 +184,7 @@ pref("dom.forms.datetime.others", true);
/* extension manager and xpinstall */
pref("xpinstall.whitelist.directRequest", false);
pref("xpinstall.whitelist.fileRequest", false);
pref("xpinstall.whitelist.add", "https://addons.mozilla.org,https://testpilot.firefox.com");
pref("xpinstall.whitelist.add", "https://addons.mozilla.org");
pref("extensions.langpacks.signatures.required", true);
pref("xpinstall.signatures.required", true);

View File

@ -5105,7 +5105,7 @@ pref("extensions.webextensions.keepStorageOnUninstall", false);
pref("extensions.webextensions.keepUuidOnUninstall", false);
// Redirect basedomain used by identity api
pref("extensions.webextensions.identity.redirectDomain", "extensions.allizom.org");
pref("extensions.webextensions.restrictedDomains", "accounts-static.cdn.mozilla.net,accounts.firefox.com,addons.cdn.mozilla.net,addons.mozilla.org,api.accounts.firefox.com,content.cdn.mozilla.net,discovery.addons.mozilla.org,input.mozilla.org,install.mozilla.org,oauth.accounts.firefox.com,profile.accounts.firefox.com,support.mozilla.org,sync.services.mozilla.com,testpilot.firefox.com");
pref("extensions.webextensions.restrictedDomains", "accounts-static.cdn.mozilla.net,accounts.firefox.com,addons.cdn.mozilla.net,addons.mozilla.org,api.accounts.firefox.com,content.cdn.mozilla.net,discovery.addons.mozilla.org,input.mozilla.org,install.mozilla.org,oauth.accounts.firefox.com,profile.accounts.firefox.com,support.mozilla.org,sync.services.mozilla.com");
// Whether or not webextension icon theming is supported.
pref("extensions.webextensions.themes.icons.enabled", false);
pref("extensions.webextensions.remote", false);

View File

@ -52,10 +52,9 @@ var PREF_EM_CHECK_COMPATIBILITY = MOZ_COMPATIBILITY_NIGHTLY ?
const VALID_TYPES_REGEXP = /^[\w\-]+$/;
const WEBAPI_INSTALL_HOSTS = ["addons.mozilla.org", "testpilot.firefox.com"];
const WEBAPI_INSTALL_HOSTS = ["addons.mozilla.org"];
const WEBAPI_TEST_INSTALL_HOSTS = [
"addons.allizom.org", "addons-dev.allizom.org",
"testpilot.stage.mozaws.net", "testpilot.dev.mozaws.net",
"example.com",
];

View File

@ -30,8 +30,7 @@ static bool IsValidHost(const nsACString& host) {
}
if (host.EqualsLiteral("addons.mozilla.org") ||
host.EqualsLiteral("discovery.addons.mozilla.org") ||
host.EqualsLiteral("testpilot.firefox.com")) {
host.EqualsLiteral("discovery.addons.mozilla.org")) {
return true;
}
@ -41,8 +40,6 @@ static bool IsValidHost(const nsACString& host) {
host.LowerCaseEqualsLiteral("discovery.addons.allizom.org") ||
host.LowerCaseEqualsLiteral("addons-dev.allizom.org") ||
host.LowerCaseEqualsLiteral("discovery.addons-dev.allizom.org") ||
host.LowerCaseEqualsLiteral("testpilot.stage.mozaws.net") ||
host.LowerCaseEqualsLiteral("testpilot.dev.mozaws.net") ||
host.LowerCaseEqualsLiteral("example.com")) {
return true;
}