[or-cvs] r13561: Fix launching of external apps. Broken by chrome disclosure (torbutton/trunk/src/components)

mikeperry at seul.org mikeperry at seul.org
Mon Feb 18 19:50:01 UTC 2008


Author: mikeperry
Date: 2008-02-18 14:50:01 -0500 (Mon, 18 Feb 2008)
New Revision: 13561

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

Fix launching of external apps. Broken by chrome disclosure
fixes.



Modified: torbutton/trunk/src/components/cssblocker.js
===================================================================
--- torbutton/trunk/src/components/cssblocker.js	2008-02-18 19:24:33 UTC (rev 13560)
+++ torbutton/trunk/src/components/cssblocker.js	2008-02-18 19:50:01 UTC (rev 13561)
@@ -159,7 +159,10 @@
             var source = (new RegExp(scheme+":\/\/([^\/]+)\/")).exec(cleanContentLoc);
             if(!source) {
                 this.logger.eclog(4, "No Source! Chrome: "+cleanContentLoc+" from: "+cleanOriginLoc);
-            } else if(!origScheme || origScheme != "chrome" && source[1] != "browser" && source[1] != "global") {
+            } else if(!origScheme || origScheme != "chrome" 
+                    // XXX: hrmm, methinks this is going to get ugly.
+                    && source[1] != "browser" && source[1] != "global"
+                    && source[1] != "mozapps") {
                 this.logger.eclog(2, "Source: "+ source[1] + ". Chrome: "+cleanContentLoc+" from: "+cleanOriginLoc);
                 if(source[1] == "torbutton" || this.tor_enabled) {
                     // Always conceal torbutton's presence. Conceal 



More information about the tor-commits mailing list