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

Unified Diff: background.js

Issue 29328928: Issue 3170 - Fixed: Sitekey not considered for element collapsing (Closed)
Patch Set: Created Oct. 8, 2015, 12:37 p.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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -339,6 +339,7 @@
var typeMask = RegExpFilter.typeMap[msg.mediatype];
var documentHost = extractHostFromFrame(sender.frame);
+ var sitekey = getKey(sender.page, sender.frame);
var blocked = false;
for (var i = 0; i < msg.urls.length; i++)
@@ -346,7 +347,7 @@
var url = new URL(msg.urls[i], msg.baseURL);
var filter = defaultMatcher.matchesAny(
stringifyURL(url), typeMask,
- documentHost, isThirdParty(url, documentHost)
+ documentHost, isThirdParty(url, documentHost), sitekey
);
if (filter instanceof BlockingFilter)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld