Index: webrequest.js |
=================================================================== |
--- a/webrequest.js |
+++ b/webrequest.js |
@@ -17,6 +17,7 @@ |
var FilterNotifier = require("filterNotifier").FilterNotifier; |
var platform = require("info").platform; |
+var logRequest = require("devtools").logRequest; |
var onFilterChangeTimeout = null; |
function onFilterChange() |
@@ -52,11 +53,12 @@ |
if (isFrameWhitelisted(page, frame)) |
return true; |
+ var reqType = type == "sub_frame" ? "SUBDOCUMENT" : type.toUpperCase(); |
var docDomain = extractHostFromFrame(frame); |
var key = getKey(page, frame); |
var filter = defaultMatcher.matchesAny( |
url, |
- type == "sub_frame" ? "SUBDOCUMENT" : type.toUpperCase(), |
+ reqType, |
docDomain, |
isThirdParty(extractHostFromURL(url), docDomain), |
key |
@@ -71,7 +73,9 @@ |
showNotification(notificationToShow); |
} |
+ logRequest(page._id, url, reqType, docDomain, key, filter); |
FilterNotifier.triggerListeners("filter.hitCount", filter, 0, 0, page); |
+ |
return !(filter instanceof BlockingFilter); |
} |