Closed Bug 817469 Opened 12 years ago Closed 12 years ago

Make XPCOM ParseFromString a wrapper for WebIDL ParseFromString

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: emk, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

https://bugzilla.mozilla.org/show_bug.cgi?id=816410#c18
> One followup we should get filed: the canonical implementation of
> ParseFromString should be the WebIDL one, because the actual implementation
> converts the PRUnichar* to a nsAString anyway, and as things are written
> right now passing a string with null to the WebIDL method would truncate at
> the null for no good reason....
Assignee: nobody → bzbarsky
Whiteboard: [need review]
Comment on attachment 687799 [details] [diff] [review]
Correctly handle embedded null in the string to parse in DOMParser.

>--- a/content/base/test/Makefile.in
>+++ b/content/base/test/Makefile.in
>@@ -595,16 +595,17 @@ MOCHITEST_FILES_B = \
> 		test_bug804395.html \
> 		test_bug809003.html \
> 		test_textnode_split_in_selection.html \
> 		test_textnode_normalize_in_selection.html \
> 		test_xhr_send_readystate.html \
> 		test_bug813919.html \
> 		test_bug814576.html \
> 		test_xhr_withCredentials.html \
>+		test_domparser_null_char.html \

Please add the test file at the bottom of MOCHITEST_FILES_A that has fewer files than MOCHITEST_FILES_B.
Attachment #687799 - Flags: review?(VYV03354) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/75a0cf19f231 with that change.
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla20
https://hg.mozilla.org/mozilla-central/rev/75a0cf19f231
Status: NEW → RESOLVED
Closed: 12 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: