From 0e002513d443ef7cddcc17acf178478844f609e9 Mon Sep 17 00:00:00 2001 From: jahoti Date: Sun, 11 Jul 2021 00:00:00 +0000 Subject: Remove redundant nonce-based filtering in the script suppressor --- content/main.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'content/main.js') diff --git a/content/main.js b/content/main.js index 5d88a6d..9acf749 100644 --- a/content/main.js +++ b/content/main.js @@ -14,7 +14,7 @@ * IMPORT csp_rule * IMPORT is_privileged_url * IMPORT sanitize_attributes - * IMPORT script_suppressor + * IMPORT mozilla_suppress_scripts * IMPORT is_chrome * IMPORT is_mozilla * IMPORT start_activity_info_server @@ -35,8 +35,6 @@ let url = url_item(document.URL); let unique = gen_unique(url); -const suppressor = script_suppressor(unique); - function is_http() { @@ -144,6 +142,6 @@ if (!is_privileged_url(document.URL)) { } if (is_mozilla) - addEventListener('beforescriptexecute', suppressor, true); + addEventListener('beforescriptexecute', mozilla_suppress_scripts, true); } } -- cgit v1.2.3