[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-60.8.0esr-9.0-1] Bug 31344: Actually register SecurityLevelPreference's 'unload' callback in privacy.js



commit d48c3fa6ace654296c78210e370838bcaaf4078c
Author: Richard Pospesel <richard@xxxxxxxxxxxxxx>
Date:   Mon Aug 5 15:44:15 2019 -0700

    Bug 31344: Actually register SecurityLevelPreference's 'unload' callback in privacy.js
---
 browser/components/preferences/in-content/privacy.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/browser/components/preferences/in-content/privacy.js b/browser/components/preferences/in-content/privacy.js
index d2229d136261..3997f22d63ad 100644
--- a/browser/components/preferences/in-content/privacy.js
+++ b/browser/components/preferences/in-content/privacy.js
@@ -161,6 +161,7 @@ var gPrivacyPane = {
       window.removeEventListener("unload", unload);
       SecurityLevelPreferences.uninit();
     };
+    window.addEventListener("unload", unload);
   },
 
   /**

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits