QNetworkReplyHandler::sendResponseIfNeeded() does not send the response for any error situation, but QNetworkReplyHandler::finish() calls client->didFinishLoading() for some error conditions. That leads to ASSERT(!m_response.isNull()) , in MainResourceLoader::didReceiveData(). If we decide to handle the error response as if there was no error, we should also send the response to the client in sendResponseIfNeeded().
Created attachment 42417 [details] Patch This patch is only handling the ASSERT. HTTP auth support would be a separate bug.
Comment on attachment 42417 [details] Patch Clearing flags on attachment: 42417 Committed r50514: <http://trac.webkit.org/changeset/50514>
All reviewed patches have been landed. Closing bug.
Did this patch fix any layout tests? Or should we add one?