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)
Core
Networking: HTTP
Tracking
()
NEW
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:
mReceivedData
istrue
(entersnsDocumentOpenInfo::OnDataAvailable
)- Every other check in
nsDocumentOpenInfo::CheckContentLengthDiscrepancy
should lead toNS_ERROR_NET_EMPTY_RESPONSE
/NS_ERROR_NET_ERROR_RESPONSE
.
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
Whiteboard: [necko-triaged]
You need to log in
before you can comment on or make changes to this bug.
Description
•