[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r13616: Check the source for orig-free windows. Allow common browser (torbutton/trunk/src/components)
Author: mikeperry
Date: 2008-02-20 04:45:25 -0500 (Wed, 20 Feb 2008)
New Revision: 13616
Modified:
torbutton/trunk/src/components/cssblocker.js
Log:
Check the source for orig-free windows. Allow common
browser components to be accessed origin-free.
Modified: torbutton/trunk/src/components/cssblocker.js
===================================================================
--- torbutton/trunk/src/components/cssblocker.js 2008-02-20 09:17:33 UTC (rev 13615)
+++ torbutton/trunk/src/components/cssblocker.js 2008-02-20 09:45:25 UTC (rev 13616)
@@ -161,7 +161,7 @@
var source = (new RegExp(scheme+":\/\/([^\/]+)\/")).exec(cleanContentLoc);
if(!source) {
this.logger.eclog(4, "No Source! Chrome: "+cleanContentLoc+" from: "+cleanOriginLoc);
- } else if(!origScheme || origScheme != "chrome"
+ } else if((!origScheme || origScheme != "chrome")
// FIXME: hrmm, methinks this is going to get ugly.
&& source[1] != "browser" && source[1] != "global"
&& source[1] != "mozapps" && source[1] != "pippki") {