[or-cvs] r16094: Fix log message (torbutton/trunk/src/chrome/content)

mikeperry at seul.org mikeperry at seul.org
Mon Jul 21 04:50:06 UTC 2008


Author: mikeperry
Date: 2008-07-21 00:50:06 -0400 (Mon, 21 Jul 2008)
New Revision: 16094

Modified:
   torbutton/trunk/src/chrome/content/torbutton.js
Log:

Fix log message



Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js	2008-07-21 02:06:11 UTC (rev 16093)
+++ torbutton/trunk/src/chrome/content/torbutton.js	2008-07-21 04:50:06 UTC (rev 16094)
@@ -2684,10 +2684,16 @@
                 torbutton_hookdoc(DOMWindow.window, doc);
             }
         } catch(e) {
-            if(doc.location != "about:plugins") {
-                torbutton_eclog(4, "Exception on tag application at "+doc.location+": "+e);
-            } else {
-                torbutton_eclog(3, "Hit about:plugins");
+            try {
+                if(doc && doc.location && 
+                  (doc.location.href.indexOf("about:") != 0 &&
+                   doc.location.href.indexOf("chrome:") != 0)) {
+                    torbutton_eclog(4, "Exception on tag application at "+doc.location+": "+e);
+                } else {
+                    torbutton_eclog(3, "Got an about url: "+e);
+                }
+            } catch(e1) {
+                torbutton_eclog(3, "Got odd url "+e);
             }
         }        
     } else {



More information about the tor-commits mailing list