Closed
Bug 810559
Opened 13 years ago
Closed 13 years ago
nsSAXXMLReader::HandleStartDTD calls nsISAXLexicalHandler::StartDTD with reversed systemID, publicID
Categories
(Core :: XML, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: WeirdAl, Assigned: WeirdAl)
Details
Attachments
(1 file)
807 bytes,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
IDL for nsISAXLexicalHandler:
void startDTD(in AString name, in AString publicId, in AString systemId);
C++ call on startDTD:
if (mLexicalHandler) {
return mLexicalHandler->StartDTD(nsDependentString(aName),
nsDependentString(aSystemId),
nsDependentString(aPublicId));
}
This makes SAX parsing... less than ideal. Patch with testcase coming.
Assignee | ||
Comment 1•13 years ago
|
||
I thought about altering the IDL, but the SAX specification says the IDL is correct:
http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html
Also, due to the limitations of XPCShell testing, I wasn't able to write a simple unit-test for this, either: apparently I have to be able to load a DTD, and there aren't any handy in XPCShell land. I could write a chrome mochitest, but that'll take a little longer.
Attachment #680332 -
Flags: review?(bugs)
Comment 2•13 years ago
|
||
Comment on attachment 680332 [details] [diff] [review]
patch without testcase
I wonder why expat and SAX have the parameters in different order.
chrome test would be nice.
Attachment #680332 -
Flags: review?(bugs) → review+
Assignee | ||
Updated•13 years ago
|
Attachment #680332 -
Flags: checkin?
Updated•13 years ago
|
Keywords: checkin-needed
Updated•13 years ago
|
Attachment #680332 -
Flags: checkin?
Comment 3•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/aa2f835b67a5
Yes, test please! :)
Flags: in-testsuite?
Keywords: checkin-needed
Comment 4•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in
before you can comment on or make changes to this bug.
Description
•