Closed
Bug 1036484
Opened 11 years ago
Closed 11 years ago
No error on empty 404
Categories
(Core :: DOM: Workers, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: evilpies, Assigned: baku)
References
Details
Attachments
(1 file)
|
4.04 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
I just spent a ridiculous amount of time figuring out why the Worker onerror callback wasn't invoked. Turns out when you send a completely blank 404 as worker scripts, onerror isn't invoked. (Content-Lenght: 0) However most webserver send some HTML, which doesn't validate as JS and thus an error is thrown. I don't know the spec for Workers, but I would expect this to thrown an error.
Andrea would you be interested in investigating this?
Flags: needinfo?(amarchesini)
| Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8470470 -
Flags: review?(khuey)
Flags: needinfo?(amarchesini)
Comment on attachment 8470470 [details] [diff] [review]
empty404.patch
Review of attachment 8470470 [details] [diff] [review]:
-----------------------------------------------------------------
That was a surprisingly effective needinfo request.
Attachment #8470470 -
Flags: review?(khuey) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
Assignee: nobody → amarchesini
| Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Updated•11 years ago
|
Flags: qe-verify-
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•