Open Bug 867107 Opened 12 years ago Updated 2 years ago

EventSource errors should log specifics to the Browser Console

Categories

(Core :: DOM: Core & HTML, defect, P5)

22 Branch
x86_64
Windows 7
defect

Tracking

()

People

(Reporter: djc, Unassigned)

Details

In the onerror callback on EventSource objects, I just get an [object Event] if I call toString() on the event (for example, in the case of a timeout). There doesn't seem to be any other identifiable information on the object, either. See also bug 867105, where the CORS error is completely opaque as well.
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21876

(Made a stupid error in my description there. Will try to fix it as soon as I figure out how to create an account there.)
The opacity at the script level is intentional, but nothing prevents the console from having lots and lots of detailed debugging info.
The spec now has notes on reporting detailed error information to the console:

http://html5.org/tools/web-apps-tracker?from=7987&to=7988
Summary: EventSource errors should come with a specific error message → EventSource errors should log specifics to the Browser Console
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.