Skip to content

Commit

Permalink
MB 163: prevent uBlock Origin from being uninstalled/disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hackademix authored and PieroV committed Jun 29, 2023
1 parent 920d45f commit 1be90a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion toolkit/mozapps/extensions/internal/XPIDatabase.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,11 @@ class AddonInternal {
}

// Bug 41598: prevent NoScript from being uninstalled/disabled
if (this.id === "{73a6fe31-595d-460b-a920-fcc0f8843232}") {
if (
this.id === "{73a6fe31-595d-460b-a920-fcc0f8843232}" ||
// mullvad-browser#163: prevent uBlock Origin from being uninstalled/disabled
this.id === "[email protected]"
) {
permissions &= ~(
AddonManager.PERM_CAN_UNINSTALL |
AddonManager.PERM_CAN_DISABLE |
Expand Down

0 comments on commit 1be90a5

Please sign in to comment.