Closed Bug 289469 Opened 19 years ago Closed 19 years ago

[FIXr]XUL error reporting broken

Categories

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

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file, 1 obsolete file)

It broke when we switched to the new expat version... the XML sink was updated,
but not the XUL one.
Attached patch Just sync to the XML sink code (obsolete) — Splinter Review
Attachment #179975 - Flags: superreview?(jst)
Attachment #179975 - Flags: review?(jst)
Priority: -- → P1
Summary: XUL error reporting broken → [FIX]XUL error reporting broken
Target Milestone: --- → mozilla1.8beta2
Comment on attachment 179975 [details] [diff] [review]
Just sync to the XML sink code

Bz, I don't think this is the right patch for this bug.
Attached patch The right patchSplinter Review
Doh.  :(  Too many diffs in flight.  :(
Attachment #181051 - Flags: superreview?(peterv)
Attachment #181051 - Flags: review?(peterv)
Attachment #179975 - Attachment is obsolete: true
Attachment #179975 - Flags: superreview?(jst)
Attachment #179975 - Flags: superreview-
Attachment #179975 - Flags: review?(jst)
Attachment #179975 - Flags: review-
Comment on attachment 181051 [details] [diff] [review]
The right patch

Thanks for cleaning up my mess.
Attachment #181051 - Flags: superreview?(peterv)
Attachment #181051 - Flags: superreview+
Attachment #181051 - Flags: review?(peterv)
Attachment #181051 - Flags: review+
Comment on attachment 181051 [details] [diff] [review]
The right patch

Requesting approval for 1.8b for this fix.  This just fixes the error document
created for malformed XUL to use the "parseerror" namespace again, so it gets
styled like we want it to be.
Attachment #181051 - Flags: approval1.8b2?
Summary: [FIX]XUL error reporting broken → [FIXr]XUL error reporting broken
Comment on attachment 181051 [details] [diff] [review]
The right patch

a=dbaron, but dare I ask what's with the magical 0xFFFF ?
Attachment #181051 - Flags: approval1.8b2? → approval1.8b2+
The API expat uses to report the namespace URI, prefix, and localname to the
application (content sink) reports them as a single string with a separator char
of the application's choice.  See
http://lxr.mozilla.org/seamonkey/source/content/base/src/nsContentUtils.cpp#1737
for something like docs on this.

We're using 0xFFFF as the separator because that's not a valid char in XML, so
it shouldn't actually appear in namespace URIs, prefixes, or localnames.
Fixed.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: