[or-cvs] r20192: {torbutton} Fix bug 1033: Allow chrome access from moz-nullprinciple. (torbutton/trunk/src/components)

mikeperry at seul.org mikeperry at seul.org
Wed Jul 29 04:35:55 UTC 2009


Author: mikeperry
Date: 2009-07-29 00:35:54 -0400 (Wed, 29 Jul 2009)
New Revision: 20192

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

Fix bug 1033: Allow chrome access from moz-nullprinciple.



Modified: torbutton/trunk/src/components/cssblocker.js
===================================================================
--- torbutton/trunk/src/components/cssblocker.js	2009-07-29 03:41:52 UTC (rev 20191)
+++ torbutton/trunk/src/components/cssblocker.js	2009-07-29 04:35:54 UTC (rev 20192)
@@ -230,9 +230,12 @@
                 }
                 break;
             case "moz-nullprincipal":
-                // forbidden
-                if (this.tor_enabling) {
-                    this.logger.safe_log(4, "Blocking request from: ",
+                // forbidden to access anything but chrome
+                // (Chrome access needed for FoxyProxy context menu)
+                if (this.tor_enabling && 
+                        (contentLocation.scheme != "chrome")) {
+                    this.logger.safe_log(4, 
+                            "Blocking nullprinciple request from: ",
                                       requestOrigin.spec + " for: " +
                                       contentLocation.spec);
                     return block;



More information about the tor-commits mailing list