mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
91a10b4280
commit
bdb030720d
@ -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