Bug 1486926 - Part 5: Pass the URI being checked to IsThirdPartyChannel() in IsFirstPartyStorageAccessGrantedFor(); r=baku

Otherwise, this function will fail when the THIRD_PARTY_FORCE_ALLOW flag has
been set on the channel.
This commit is contained in:
Ehsan Akhgari 2018-08-29 09:49:10 -04:00
parent 113749631e
commit 4ad569ee63

View File

@ -542,7 +542,7 @@ AntiTrackingCommon::IsFirstPartyStorageAccessGrantedFor(nsIHttpChannel* aChannel
bool thirdParty = false;
rv = thirdPartyUtil->IsThirdPartyChannel(aChannel,
nullptr,
aURI,
&thirdParty);
// Grant if it's not a 3rd party.
// Be careful to check the return value of IsThirdPartyChannel, since