Closed Bug 1627800 Opened 4 years ago Closed 10 months ago

404 http error isn't displayed in Firefox

Categories

(Core :: Networking: HTTP, defect, P2)

74 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1325876

People

(Reporter: yuri, Assigned: valentin)

Details

(Keywords: parity-chrome, Whiteboard: [necko-triaged])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:74.0) Gecko/20100101 Firefox/74.0

Steps to reproduce:

I ran this NodeJS script always returning 404 http error:
const http = require('http');

const hostname = '127.0.0.1';
const port = 3009;

const server = http.createServer((req, res) => {
res.statusCode = 404;
res.end();
});

server.listen(port, hostname, () => {
console.log(Server running at http://${hostname}:${port}/);
});

Actual results:

Firefox shows a blank screen.

(Chromium says HTTP ERROR 404)

Expected results:

Firefox should show the user a message about what happened.

The http code and other relevant info (the IP address, host name, headers) should also be displayed.

OS: FreeBSD 12.1

Could you please provide if it's possible a test page to try to reproduce the issue?
Thanks.

Flags: needinfo?(yuri)

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is -- (Backlog,) indicating it has has not been previously triaged, the bug's Severity is being updated to -- (default, untriaged.)

Severity: normal → --

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Networking: HTTP
Product: Firefox → Core
Attached file test.js

Running the file with nodejs test.js then loading http://127.0.0.1:3009/ shows an error page in Chrome and nothing in Firefox.

I guess it would be nice if we could provide some default content when there is none for a 404 response? It seems redirecting to about:neterror?something isn't the right approach here.

Flags: needinfo?(yuri)
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: parity-chrome
Priority: -- → P3
Summary: http error isn't displayed in Firefox → 404 http error isn't displayed in Firefox
Whiteboard: [necko-triaged]
Assignee: nobody → valentin.gosu
Status: NEW → ASSIGNED
Priority: P3 → P2
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Duplicate of bug: 1325876
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: