[or-cvs] [torbutton/master 03/30] Fix bug 1032 - Apply mystery patch from anonymous commenter.

mikeperry at torproject.org mikeperry at torproject.org
Fri Apr 9 22:53:59 UTC 2010


Author: Mike Perry <mikeperry-git at fscked.org>
Date: Wed, 17 Mar 2010 18:12:02 -0700
Subject: Fix bug 1032 - Apply mystery patch from anonymous commenter.
Commit: 76bb0400a9dc837a3818d341dd40842d627ff8c7

Always take patches from strangers, kids. They're usually very very
delicious.
---
 src/chrome/content/torbutton.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index e854735..56b0947 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -2952,7 +2952,8 @@ unregister : function() {
 var torbutton_proxyservice = {
   applyFilter : function(ps, uri, proxy) {
     try {
-      torbutton_eclog(3, 'apply: '+uri.host+' '+uri.scheme+', '+proxy);
+      proxyhost = proxy ? 'proxy: '+proxy.host:'no proxy';
+      torbutton_eclog(3, 'apply: '+proxyhost);
       if (m_tb_prefs.getBoolPref("extensions.torbutton.tor_enabled")) {
         if (uri.host == "localhost") return null;
       }
@@ -2977,7 +2978,7 @@ var torbutton_proxyservice = {
     try {
     var proxyservice = Components.classes["@mozilla.org/network/protocol-proxy-service;1"]
       .getService(Components.interfaces.nsIProtocolProxyService);
-    proxyservice.unregisterFilter(this, 0);
+    proxyservice.unregisterFilter(this);
     } catch (e) {
       torbutton_eclog(3, 'UnregisterFilter failed:'+e);
     }
-- 
1.6.5




More information about the tor-commits mailing list