Bug 1639140 - Remove HasStoragePermissionInParent in DocumentLoadListener r=timhuang,necko-reviewers a=reland CLOSED TREE

We don't need to call this API in DocumentLoadListener::AsyncOpen because we have
already called this in nsHttpChannel::AsyncOpen

Differential Revision: https://phabricator.services.mozilla.com/D76275
This commit is contained in:
Dimi Lee 2020-05-22 07:32:22 +00:00
parent a10ab58b99
commit ddefdeef9b

View File

@ -425,10 +425,6 @@ bool DocumentLoadListener::Open(
httpBaseChannel->SetTopWindowURI(topWindowURI);
}
// TODO: Remove this in Bug 1639140
Unused << loadInfo->SetHasStoragePermission(
AntiTrackingUtils::HasStoragePermissionInParent(mChannel));
nsCOMPtr<nsIIdentChannel> identChannel = do_QueryInterface(mChannel);
if (identChannel && aChannelId) {
Unused << identChannel->SetChannelId(*aChannelId);