Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: webrequest.js

Issue 5644946291818496: Issue 433 - Made adjustments for $sitekey-related changes to the Matcher API (Closed)
Patch Set: Created Sept. 15, 2014, 9:22 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/whitelisting.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrequest.js
===================================================================
--- a/webrequest.js
+++ b/webrequest.js
@@ -53,11 +53,13 @@
return true;
var docDomain = extractHostFromFrame(frame);
+ var key = getKey(page, frame);
var filter = defaultMatcher.matchesAny(
url,
type == "sub_frame" ? "SUBDOCUMENT" : type.toUpperCase(),
docDomain,
- isThirdParty(extractHostFromURL(url), docDomain)
+ isThirdParty(extractHostFromURL(url), docDomain),
+ key
);
// We can't listen to onHeadersReceived in Safari so we need to
@@ -95,7 +97,7 @@
{
var header = details.responseHeaders[i];
if (header.name.toLowerCase() == "x-adblock-key" && header.value)
- processKeyException(header.value, page, frame);
+ processKey(header.value, page, frame);
}
var notificationToShow = Notification.getNextToShow(details.url);
« no previous file with comments | « lib/whitelisting.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld