Skip to content
Snippets Groups Projects
Commit 246c0a54 authored by ma1's avatar ma1 Committed by Richard Pospesel
Browse files

fixup! Bug 40253: Explicitly allow NoScript in Private Browsing mode.

Bug 41598: Prevent NoScript from being removed/disabled.
Bug 40253: Explicitly allow NoScript in Private Browsing mode.
parent dbc8789e
Branches
Tags
1 merge request!571Bug 41669: Rebase base-browser stable to 102.9.0esr
......@@ -854,6 +854,15 @@ class AddonInternal {
}
}
// Bug 41598: prevent NoScript from being uninstalled/disabled
if (this.id === "{73a6fe31-595d-460b-a920-fcc0f8843232}") {
permissions &= ~(
AddonManager.PERM_CAN_UNINSTALL |
AddonManager.PERM_CAN_DISABLE |
AddonManager.PERM_CAN_CHANGE_PRIVATEBROWSING_ACCESS
);
}
return permissions;
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment