[Pkg-mozext-commits] [requestpolicy] 171/280: add some logging in shouldLoad

David Prévot taffit at moszumanska.debian.org
Sat May 2 20:30:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit f7e5c0d218d3cf9b7e9e367fa7752a35a0624cdd
Author: Martin Kimmerle <dev at 256k.de>
Date:   Thu Jan 22 19:22:08 2015 +0100

    add some logging in shouldLoad
---
 src/content/lib/request-processor.jsm | 4 ++++
 src/content/lib/request.jsm           | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/src/content/lib/request-processor.jsm b/src/content/lib/request-processor.jsm
index ae25dba..4676e53 100644
--- a/src/content/lib/request-processor.jsm
+++ b/src/content/lib/request-processor.jsm
@@ -453,6 +453,10 @@ let RequestProcessor = (function(self) {
     //Logger.vardump(request.aContentLocation);
     try {
       if (request.isInternal()) {
+        Logger.debug(Logger.TYPE_CONTENT,
+                     "Allowing a request that seems to be internal. " +
+                     "Origin: " + request.originURI + ", Dest: " +
+                     request.destURI);
         return CP_OK;
       }
 
diff --git a/src/content/lib/request.jsm b/src/content/lib/request.jsm
index 3b57f56..0052225 100644
--- a/src/content/lib/request.jsm
+++ b/src/content/lib/request.jsm
@@ -151,10 +151,14 @@ NormalRequest.prototype.isInternal = function() {
       || this.aContentLocation.scheme == "blob"
       || this.aContentLocation.scheme == "wyciwyg"
       || this.aContentLocation.scheme == "javascript") {
+    Logger.info(Logger.TYPE_CONTENT,
+                "Allowing request with an internal destination.");
     return true;
   }
 
   if (this.aRequestOrigin === undefined || this.aRequestOrigin === null) {
+    Logger.info(Logger.TYPE_CONTENT,
+                "Allowing request without an origin.");
     return true;
   }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list