mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
be2d883ce6
commit
67a99f4507
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user