No Issue - Stop warning if a network request failed.

Bug 1286036
This commit is contained in:
Shadow 2025-03-13 13:15:41 +00:00 • committed by roytam1
commit d9c27beb51

View file

@ -556,8 +556,13 @@ nsCORSListenerProxy::CheckRequestApproved(nsIRequest* aRequest)
// Check if the request failed
nsresult status;
nsresult rv = aRequest->GetStatus(&status);
NS_ENSURE_SUCCESS(rv, rv);
NS_ENSURE_SUCCESS(status, status);
if (NS_FAILED(rv)) {
return rv;
}
if (NS_FAILED(status)) {
return status;
}
// Test that things worked on a HTTP level
nsCOMPtr<nsIHttpChannel> http = do_QueryInterface(aRequest);