Closed
Bug 1016313
Opened 11 years ago
Closed 11 years ago
No "error" event on Worker if HTTP 404 response contains no data
Categories
(Core :: DOM: Workers, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1036484
People
(Reporter: ahe, Unassigned)
Details
Attachments
(1 file)
|
308 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36
Steps to reproduce:
When creating a Worker that points to a missing file and the HTTP server responds 404 without an error message, the Worker receives no "error" event.
For example:
new Worker("no_such_file").onerror = function(e) {
console.log("error event received");
};
I can reproduce this with an Apache HTTP server by adding the following to .htaccess:
ErrorDocument 404 URL
Where URL starts with a forward slash (/) and resolves to an empty file.
I've also attached index.html which demonstrates the issue when served from a HTTP server which replies 404 with an empty response.
I'm observing this issue on Mac OS X 10.9.3.
Actual results:
No "error" event is fired (console doesn't contain the message "error event received").
Expected results:
An "error" event should have fired (console should contain the message "error event received").
Updated•11 years ago
|
Component: Untriaged → DOM: Workers
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•