[tbb-commits] [torbutton/master] Bug 10819: Bind new third party isolation pref to the Torbutton pref.

mikeperry at torproject.org mikeperry at torproject.org
Fri Jun 27 16:46:27 UTC 2014


commit e4504d77dad74914803c902d3296de6c5c493e7f
Author: Mike Perry <mikeperry-git at torproject.org>
Date:   Fri Jun 27 09:42:46 2014 -0700

    Bug 10819: Bind new third party isolation pref to the Torbutton pref.
    
    This makes the UI option apply to this new pref.
---
 src/chrome/content/torbutton.js |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index b149a30..3e7cf62 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -1995,7 +1995,11 @@ function torbutton_update_fingerprinting_prefs() {
 
 function torbutton_update_thirdparty_prefs() {
     var mode = m_tb_prefs.getBoolPref("extensions.torbutton.restrict_thirdparty");
-    
+
+    try {
+        m_tb_prefs.setBoolPref("privacy.thirdparty.isolate", mode);
+    } catch(e) {}
+
     if (mode) {
       m_tb_prefs.setIntPref("network.cookie.cookieBehavior", 1);
     } else {





More information about the tbb-commits mailing list