Commit f2034b7e authored by Michael Kaply's avatar Michael Kaply
Browse files

Bug 1569244 - Only uninstall extensions if they are in the profile. r=kmag

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

--HG--
extra : moz-landing-system : lando
parent d2b2321c
......@@ -752,7 +752,11 @@ var Policies = {
}
if (blockAllExtensions) {
for (let addon of addons) {
if (addon.isSystem || addon.isBuiltin) {
if (
addon.isSystem ||
addon.isBuiltin ||
!(addon.scope & AddonManager.SCOPE_PROFILE)
) {
continue;
}
if (!allowedExtensions.includes(addon.id)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment