Bug 965413 part 13. Stop propagating null principal owners across redirects in nsHttpChannel, since we now handle that via loadInfo. r=smaug

This commit is contained in:
Boris Zbarsky 2014-07-10 02:56:38 -04:00
parent 91a10b4280
commit bdb030720d

View File

@ -1899,13 +1899,6 @@ HttpBaseChannel::SetupReplacementChannel(nsIURI *newURI,
newChannel->SetNotificationCallbacks(mCallbacks);
newChannel->SetLoadFlags(newLoadFlags);
// If our owner is a null principal it will have been set as a security
// measure, so we want to propagate it to the new channel.
nsCOMPtr<nsIPrincipal> ownerPrincipal = do_QueryInterface(mOwner);
if (ownerPrincipal && ownerPrincipal->GetIsNullPrincipal()) {
newChannel->SetOwner(mOwner);
}
// Try to preserve the privacy bit if it has been overridden
if (mPrivateBrowsingOverriden) {
nsCOMPtr<nsIPrivateBrowsingChannel> newPBChannel =