Closed
Bug 817844
Opened 12 years ago
Closed 12 years ago
Remove DOMClassInfo remnants from DOMParser/XMLSerializer
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: emk, Assigned: emk)
References
Details
Attachments
(2 files, 1 obsolete file)
4.13 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
8.18 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•12 years ago
|
||
>--- 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)
Assignee | ||
Comment 2•12 years ago
|
||
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)
Assignee | ||
Comment 3•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=7669512fa4cf
Assignee | ||
Comment 4•12 years ago
|
||
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);
Assignee | ||
Comment 5•12 years ago
|
||
0x80500001 is NS_ERROR_UCONV_NOCONV. Both parseFromStream and serializeToStream allowed the null charset parameter by contract. https://mxr.mozilla.org/mozilla-central/source/content/base/public/nsIDOMSerializer.idl?rev=f4157e8c4107#31 https://mxr.mozilla.org/mozilla-central/source/content/base/public/nsIDOMParser.idl?rev=a16372ce30b5#48
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #688451 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #688452 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•12 years ago
|
Attachment #688452 -
Attachment is patch: true
Assignee | ||
Comment 8•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=a58ee36befa0
Comment 9•12 years ago
|
||
Comment on attachment 688451 [details] [diff] [review] Part 1: Fix WebIDL signature of serializeToStream/parseFromStream r=me
Attachment #688451 -
Flags: review?(bzbarsky) → review+
Comment 10•12 years ago
|
||
Comment on attachment 688452 [details] [diff] [review] Part 2: Remove DOMClassInfo remnants from DOMParser/XMLSerializer r=me
Attachment #688452 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 11•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/496577951cc2 https://hg.mozilla.org/integration/mozilla-inbound/rev/c20d8d5480e1
Comment 12•12 years ago
|
||
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
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•