[or-cvs] r13349: Fix "open in new window" bug introduced in r13324. (torbutton/trunk/src/components)

mikeperry at seul.org mikeperry at seul.org
Fri Feb 1 06:49:09 UTC 2008


Author: mikeperry
Date: 2008-02-01 01:49:09 -0500 (Fri, 01 Feb 2008)
New Revision: 13349

Modified:
   torbutton/trunk/src/components/cssblocker.js
Log:

Fix "open in new window" bug introduced in r13324.



Modified: torbutton/trunk/src/components/cssblocker.js
===================================================================
--- torbutton/trunk/src/components/cssblocker.js	2008-02-01 05:34:00 UTC (rev 13348)
+++ torbutton/trunk/src/components/cssblocker.js	2008-02-01 06:49:09 UTC (rev 13349)
@@ -232,6 +232,11 @@
                     this.logger.log(3, "Origin: "+requestOrigin.spec);
                     var scheme = requestOrigin.spec.replace(/:.*/, "").toLowerCase();
                     if(scheme != "chrome") {
+                        if(typeof(browser.__tb_tor_fetched) == 'undefined') {
+                            // This happens for "open in new window" context menu
+                            this.logger.log(3, "Untagged window for redirect "+contentLocation.spec);
+                            return ok;
+                        }
                         if(browser.__tb_tor_fetched == tor_state) {
                             return ok;
                         } else {



More information about the tor-commits mailing list