mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
Fix for Bug 84336, Checking in for Kai Engert
r=bbaetz, sr=mscot Check return value from GetResponseStatus so that if a lower layer failed we don't deliver a blank page.
This commit is contained in:
parent
7878d7fd93
commit
710ca72921
@ -205,7 +205,13 @@ NS_IMETHODIMP nsDocumentOpenInfo::OnStartRequest(nsIRequest *request, nsISupport
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
PRUint32 responseCode = 0;
|
||||
|
||||
httpChannel->GetResponseStatus(&responseCode);
|
||||
rv = httpChannel->GetResponseStatus(&responseCode);
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
// behave as in the canceled case
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (204 == responseCode) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user