Closed Bug 49091 Opened 25 years ago Closed 25 years ago

DOM API string change...

Categories

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

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jst, Assigned: vidur)

Details

(Keywords: embed, Whiteboard: [nsbeta3+][HAVE FIX])

The string class used in the DOM interfaces should be changed from nsString references to nsAReadableString for input parameters and nsAWritableString for output parameters. Why did we have to make these changes? Two reasons: - Without the changes, the DOM APIs had fragile class references in them (specifically nsString&). To get rid of this fragility, we could have replaced these references with either interface references or raw (wide) character pointers. We chose the former, since it didn't change the performance and memory usage characteristics of these methods. - By moving to the nsAReadableString and nsAWritableString interfaces, we allow the use of other, possibly more efficient, string implementations for cases we identify through performance analysis.
This is a now or never change that must happen for beta3, nominating.
Status: NEW → ASSIGNED
Keywords: embed, nsbeta3
Whiteboard: [HAVE FIX]
Marking nsbeta3+
Whiteboard: [HAVE FIX] → [nsbeta3+][HAVE FIX]
Fix checked in on 7/23/2000. Kudos to jst@netscape.com and scc@mozilla.org for the big effort that went into this.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Component: DOM Level 2 → DOM Other
Component: DOM Other → DOM Level 1
Flags: in-testsuite-
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.