[tbb-commits] [torbutton/master] Revert "Fix NoScript IPC for about:blank by whitelisting messages"

gk at torproject.org gk at torproject.org
Tue Sep 18 10:50:39 UTC 2018


commit 0a7d19da90202e5d40851432400444dd6287ffd9
Author: Georg Koppen <gk at torproject.org>
Date:   Tue Sep 18 10:46:58 2018 +0000

    Revert "Fix NoScript IPC for about:blank by whitelisting messages"
    
    This reverts commit efdc83fec6244d5f2e4b8880fef010a6e362d9dc.
---
 src/modules/noscript-control.js | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/modules/noscript-control.js b/src/modules/noscript-control.js
index c1442950..934a4ef0 100644
--- a/src/modules/noscript-control.js
+++ b/src/modules/noscript-control.js
@@ -129,9 +129,6 @@ var initialize = () => {
     // bind the security_slider pref to the NoScript settings.
     let messageListener = (a,b,c) => {
       log(3, `Message received from NoScript: ${JSON.stringify([a,b,c])}`);
-      if (a._messageName != "started" && a._messageName != "pageshow") {
-        return;
-      }
       extensionContext.api.browser.runtime.onMessage.removeListener(messageListener);
       bindPrefAndInit(
         "extensions.torbutton.security_slider",





More information about the tbb-commits mailing list