Closed Bug 817844 Opened 12 years ago Closed 12 years ago

Remove DOMClassInfo remnants from DOMParser/XMLSerializer

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: emk, Assigned: emk)

References

Details

Attachments

(2 files, 1 obsolete file)

      No description provided.
Attached patch patch (obsolete) — Splinter Review
>--- a/content/base/src/nsDOMSerializer.cpp
>+++ b/content/base/src/nsDOMSerializer.cpp
>@@ -1,43 +1,39 @@
> nsDOMSerializer::nsDOMSerializer()
> {
>+  SetIsDOMBinding();
> }
I shot my foot again :(
Attachment #688013 - Flags: review?(bzbarsky)
Comment on attachment 688013 [details] [diff] [review]
patch

Failed xpcshell tests :(
https://tbpl.mozilla.org/?tree=Try&pusher=VYV03354@nifty.ne.jp
Attachment #688013 - Attachment is obsolete: true
Attachment #688013 - Flags: review?(bzbarsky)
OK, I found the cause of failure.
  serializer.serializeToStream(doc, stream, null);
worked when serializer was XPC binding, but throws 0x80500001 if serializer is WebIDL binding. Because null will be converted into the string "null" and "null" is not a valid charset name.
The WebIDL signature should be something like:
  [Throws, ChromeOnly]
  void serializeToStream(Node root, OutputStream stream, DOMString? charset);
Attachment #688452 - Attachment is patch: true
Comment on attachment 688451 [details] [diff] [review]
Part 1: Fix WebIDL signature of serializeToStream/parseFromStream

r=me
Attachment #688451 - Flags: review?(bzbarsky) → review+
Comment on attachment 688452 [details] [diff] [review]
Part 2: Remove DOMClassInfo remnants from DOMParser/XMLSerializer

r=me
Attachment #688452 - Flags: review?(bzbarsky) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/496577951cc2
https://hg.mozilla.org/mozilla-central/rev/c20d8d5480e1
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
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: