RequestPolicy/requestpolicy — Issue #241: Logging of Would Have Been Blocked Requests in Allow All Requests override mode
Author: jsamuel
Created: 2011-12-22 19:02:11+00:00
State: open
Labels: extension

imported trac ticket
created: 2011-06-29 11:21:55
reporter: eibwen

Logging of "would have been blocked, but all requests allowed" is deceptive at best:

{{{
// We always call this from shouldLoad to reject a request.
reject : function(reason, args) {
requestpolicy.mod.Logger.warning(requestpolicy.mod.Logger.TYPE_CONTENT,
"** BLOCKED ** reason: "
+ reason
+ ". "
+ this._argumentsToString(args[0], args[1], args[2], args[3],
args[4], args[5]));

if (this._blockingDisabled) {
return CP_OK;
}
}}}

This logs the request as "blocked", but then proceeds to allow it...