[tor-commits] [tor-browser/tor-browser-91.2.0esr-11.0-1] Bug 40253: Explicitly allow NoScript in Private Browsing mode.

sysrqb at torproject.org sysrqb at torproject.org
Wed Oct 6 13:32:12 UTC 2021


commit 08c3689b3fe87de65b992478acf71d7c72d3a1c3
Author: Matthew Finkel <sysrqb at torproject.org>
Date:   Fri Sep 3 14:58:28 2021 +0000

    Bug 40253: Explicitly allow NoScript in Private Browsing mode.
---
 toolkit/components/extensions/Extension.jsm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/toolkit/components/extensions/Extension.jsm b/toolkit/components/extensions/Extension.jsm
index 69833684ca53..60b610768dfb 100644
--- a/toolkit/components/extensions/Extension.jsm
+++ b/toolkit/components/extensions/Extension.jsm
@@ -2644,6 +2644,15 @@ class Extension extends ExtensionData {
         this.permissions.add(PRIVATE_ALLOWED_PERMISSION);
       }
 
+      // Bug 40253: Explicitly allow NoScript in Private Browsing mode.
+      if (this.id === "{73a6fe31-595d-460b-a920-fcc0f8843232}") {
+        ExtensionPermissions.add(this.id, {
+          permissions: [PRIVATE_ALLOWED_PERMISSION],
+          origins: [],
+        });
+        this.permissions.add(PRIVATE_ALLOWED_PERMISSION);
+      }
+
       // We only want to update the SVG_CONTEXT_PROPERTIES_PERMISSION during install and
       // upgrade/downgrade startups.
       if (INSTALL_AND_UPDATE_STARTUP_REASONS.has(this.startupReason)) {





More information about the tor-commits mailing list