Open Bug 1956000 Opened 26 days ago Updated 23 days ago

Consider showing error page for 4xx/5xx responses with no content but enters nsDocumentOpenInfo::OnDataAvailable

Categories

(Core :: Networking: HTTP, enhancement, P3)

enhancement
Points:
2

Tracking

()

People

(Reporter: sekim, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

In Bug 1945855, adding mReceivedData fixed the issue with error page being shown for GitLab custom error 404 pages. It also managed to fix the mass failures of default 404 error page (GetDecodedBodySize returned 0 in all these cases, while mReceivedData was true for all).

However, after this change, it is failing to show error page for content-length=ANY, empty body. Some observations to consider:

STR: Enter https://lvlin.baidu.com/question/1743595071203483867.html
Expected: 403 error page (From NS_ERROR_NET_ERROR_RESPONSE)
Actual: No error page

Blocks: necko-error
Severity: -- → N/A
Points: --- → 2
Depends on: 1945855
Priority: -- → P3
See Also: → 1944985, 1381499
Whiteboard: [necko-triaged]
See Also: 13814991325876
You need to log in before you can comment on or make changes to this bug.