mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-02 10:24:59 +12:00
"1st-party" is domain, not hostname
This commit is contained in:
parent
a91c4fd27e
commit
ff0470dfa1
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue