mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1242472 - Properly propagate mTopWindowURI through redirects. r=francois/ckerschb
This commit is contained in:
parent
9fcf502519
commit
443753e20a
@ -2732,6 +2732,12 @@ HttpBaseChannel::SetupReplacementChannel(nsIURI *newURI,
|
||||
httpInternal->SetAllowSpdy(mAllowSpdy);
|
||||
httpInternal->SetAllowAltSvc(mAllowAltSvc);
|
||||
|
||||
RefPtr<nsHttpChannel> realChannel;
|
||||
CallQueryInterface(newChannel, realChannel.StartAssignment());
|
||||
if (realChannel) {
|
||||
realChannel->SetTopWindowURI(mTopWindowURI);
|
||||
}
|
||||
|
||||
// update the DocumentURI indicator since we are being redirected.
|
||||
// if this was a top-level document channel, then the new channel
|
||||
// should have its mDocumentURI point to newURI; otherwise, we
|
||||
|
Loading…
Reference in New Issue
Block a user