mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
Bug 590121 - Null nsHttpResponseHead crashes in redirect. r=dwitte@gmail.com, a=blocking2.0final+
This commit is contained in:
parent
28bc5f31c3
commit
08e26c2ecf
@ -220,11 +220,14 @@ HttpChannelParentListener::AsyncOnChannelRedirect(
|
||||
newChannel->GetURI(getter_AddRefs(newURI));
|
||||
|
||||
nsHttpChannel *oldHttpChannel = static_cast<nsHttpChannel *>(oldChannel);
|
||||
nsHttpResponseHead *responseHead = oldHttpChannel->GetResponseHead();
|
||||
|
||||
// TODO: check mActiveChannel->mIPCClosed and return val from Send function
|
||||
mActiveChannel->SendRedirect1Begin(mRedirectChannel,
|
||||
IPC::URI(newURI),
|
||||
redirectFlags,
|
||||
*oldHttpChannel->GetResponseHead());
|
||||
responseHead ? *responseHead
|
||||
: nsHttpResponseHead());
|
||||
|
||||
// mActiveChannel gets the response in RecvRedirect2Result and forwards it
|
||||
// to this wrapper through OnContentRedirectResultReceived
|
||||
|
Loading…
Reference in New Issue
Block a user