[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-102.7.0esr-12.5-1] amend! Bug 40253: Explicitly allow NoScript in Private Browsing mode.

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Tue Jan 31 14:37:48 UTC 2023



Pier Angelo Vendrame pushed to branch tor-browser-102.7.0esr-12.5-1 at The Tor Project / Applications / Tor Browser


Commits:
5ac078b7 by hackademix at 2023-01-31T12:26:37+01:00
amend! 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.

- - - - -


1 changed file:

- toolkit/mozapps/extensions/internal/XPIDatabase.jsm


Changes:

=====================================
toolkit/mozapps/extensions/internal/XPIDatabase.jsm
=====================================
@@ -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;
   }
 



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/5ac078b72c3d20811fcbdfe6cf447d9e66fe0a26

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/5ac078b72c3d20811fcbdfe6cf447d9e66fe0a26
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20230131/ac8fc877/attachment-0001.htm>


More information about the tor-commits mailing list