mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
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:
parent
dc58885cdc
commit
ee2283d446
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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",
|
||||
];
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user