"1st-party" is domain, not hostname

pull/2/head
gorhill 11 years ago
parent a91c4fd27e
commit ff0470dfa1

@ -88,11 +88,11 @@
}; };
µMatrix.autoWhitelist1stPartyTemporarily = function(pageURL) { µMatrix.autoWhitelist1stPartyTemporarily = function(pageURL) {
var srcHostname = this.URI.hostnameFromURI(pageURL); var srcDomain = this.URI.domainFromURI(pageURL);
if ( this.tMatrix.evaluateCellZXY(srcHostname, srcHostname, '*') !== this.Matrix.RedIndirect ) { if ( this.tMatrix.evaluateCellZXY(srcDomain, srcDomain, '*') !== this.Matrix.RedIndirect ) {
return false; return false;
} }
this.tMatrix.whitelistCell(srcHostname, srcHostname, '*'); this.tMatrix.whitelistCell(srcDomain, srcDomain, '*');
return true; return true;
}; };

Loading…
Cancel
Save