[tbb-commits] [torbutton/maint-10.0] Bug 40030: Add 'noscript' capability to NoScript

sysrqb at torproject.org sysrqb at torproject.org
Thu Mar 25 17:30:01 UTC 2021


commit a9372507c5c035aa94109223302f1c3e77932baa
Author: HackerNCoder <hackerncoder at protonmail.ch>
Date:   Wed Feb 24 22:45:31 2021 +0000

    Bug 40030: Add 'noscript' capability to NoScript
---
 modules/noscript-control.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/noscript-control.js b/modules/noscript-control.js
index 3cd5f602..ea735377 100644
--- a/modules/noscript-control.js
+++ b/modules/noscript-control.js
@@ -68,20 +68,20 @@ let log = (level, msg) => logger.log(level, msg);
 // ## NoScript settings
 
 // Minimum and maximum capability states as controlled by NoScript.
-const max_caps = ["fetch", "font", "frame", "media", "object", "other", "script", "webgl"];
-const min_caps = ["frame", "other"];
+const max_caps = ["fetch", "font", "frame", "media", "object", "other", "script", "webgl", "noscript"];
+const min_caps = ["frame", "other", "noscript"];
 
 // Untrusted capabilities for [Standard, Safer, Safest] safety levels.
 const untrusted_caps = [
   max_caps, // standard safety: neither http nor https
-  ["frame", "font", "object", "other"], // safer: http
+  ["frame", "font", "object", "other", "noscript"], // safer: http
   min_caps, // safest: neither http nor https
 ];
 
 // Default capabilities for [Standard, Safer, Safest] safety levels.
 const default_caps = [
   max_caps, // standard: both http and https
-  ["fetch", "font", "frame", "object", "other", "script"], // safer: https only
+  ["fetch", "font", "frame", "object", "other", "script", "noscript"], // safer: https only
   min_caps, // safest: both http and https
 ];
 



More information about the tbb-commits mailing list