From ff0470dfa1a5a668343babea48af846755b313c0 Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 20 Oct 2014 21:33:11 -0400 Subject: [PATCH] "1st-party" is domain, not hostname --- src/js/httpsb.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/httpsb.js b/src/js/httpsb.js index e19f6e7..1bc05b5 100644 --- a/src/js/httpsb.js +++ b/src/js/httpsb.js @@ -88,11 +88,11 @@ }; µMatrix.autoWhitelist1stPartyTemporarily = function(pageURL) { - var srcHostname = this.URI.hostnameFromURI(pageURL); - if ( this.tMatrix.evaluateCellZXY(srcHostname, srcHostname, '*') !== this.Matrix.RedIndirect ) { + var srcDomain = this.URI.domainFromURI(pageURL); + if ( this.tMatrix.evaluateCellZXY(srcDomain, srcDomain, '*') !== this.Matrix.RedIndirect ) { return false; } - this.tMatrix.whitelistCell(srcHostname, srcHostname, '*'); + this.tMatrix.whitelistCell(srcDomain, srcDomain, '*'); return true; };