Closed
Bug 297814
Opened 19 years ago
Closed 19 years ago
Report XML parsing errors to the error (JS) console
Categories
(Core :: XML, defect)
Core
XML
Tracking
()
RESOLVED
FIXED
mozilla1.8beta3
People
(Reporter: benjamin, Assigned: benjamin)
Details
Attachments
(1 file)
5.59 KB,
patch
|
mrbkap
:
review+
shaver
:
superreview+
benjamin
:
approval-aviary1.1a2+
|
Details | Diff | Splinter Review |
Currently XML parsing errors are displayed on-screen with the yellow error page, but the error is not reported to the error (JS) console. If developers are using XMLHttpRequest or some kinds of overlays, it is much more helpful if XML parsing errors are reported to the error console.
![]() |
||
Comment 1•19 years ago
|
||
We have a bug on not using the yellow thing for data documents (and reporting the error in some other way) already...
Whiteboard: DUPEME
Assignee | ||
Comment 2•19 years ago
|
||
Boris, can you point me at that bug, I can't find it; the closest thing I found was bug 52422. I don't really want to touch how we do the yellow error pages (yet), just add an additional message-to-console.
![]() |
||
Comment 3•19 years ago
|
||
Bug 289714, I believe.
Assignee | ||
Comment 4•19 years ago
|
||
Assignee: xml → benjamin
Status: NEW → ASSIGNED
Attachment #186991 -
Flags: superreview?(shaver)
Attachment #186991 -
Flags: review?(mrbkap)
Comment 5•19 years ago
|
||
Comment on attachment 186991 [details] [diff] [review] Report XML parsing errors to the console, rev. 1 I don't _really_ like using nsScriptError for this, because of the JavaScript references in toString and so forth, but I sure do like reporting errors to the console. sr=shaver Are we going to want a pref to suppress this category of errors, as many now crave for the extremely common CSS error messages?
Attachment #186991 -
Flags: superreview?(shaver) → superreview+
Assignee | ||
Comment 6•19 years ago
|
||
I hope that these errors will be much less common than the CSS messages, as there's not a lot of XML out there on the web yet. It sounds to me like people want a console manager UI flag to suppress the display of certain types of errors, which would be cool but is a different bug.
Updated•19 years ago
|
Attachment #186991 -
Flags: review?(mrbkap) → review+
Assignee | ||
Updated•19 years ago
|
Whiteboard: DUPEME
Assignee | ||
Updated•19 years ago
|
Attachment #186991 -
Flags: approval-aviary1.1a2?
Assignee | ||
Comment 7•19 years ago
|
||
Comment on attachment 186991 [details] [diff] [review] Report XML parsing errors to the console, rev. 1 a=chofmann
Attachment #186991 -
Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
Assignee | ||
Comment 8•19 years ago
|
||
Fixed for 1.8b3
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8beta3
Assignee | ||
Comment 9•19 years ago
|
||
Steps for QA testing of this bug are simple: visit a malformed XML file (e.g. data:text/xml,<a ) and check to see that the error appears in the JS console with the correct column and line number.
You need to log in
before you can comment on or make changes to this bug.
Description
•