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

gk at torproject.org gk at torproject.org
Wed Aug 7 18:35:57 UTC 2019


commit d48c3fa6ace654296c78210e370838bcaaf4078c
Author: Richard Pospesel <richard at torproject.org>
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);
   },
 
   /**



More information about the tor-commits mailing list