Closed Bug 74726 Opened 24 years ago Closed 16 years ago

[API] Make |nsSharable[C]String| writable and add xpidl-string functionality

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: scc, Assigned: jag+mozilla)

References

Details

Attachments

(11 files)

2.80 KB, patch
Details | Diff | Splinter Review
3.04 KB, patch
Details | Diff | Splinter Review
542 bytes, text/plain
Details
22.89 KB, patch
Details | Diff | Splinter Review
26.61 KB, patch
Details | Diff | Splinter Review
27.36 KB, patch
Details | Diff | Splinter Review
28.78 KB, patch
Details | Diff | Splinter Review
29.53 KB, patch
Details | Diff | Splinter Review
31.67 KB, patch
Details | Diff | Splinter Review
35.55 KB, patch
Details | Diff | Splinter Review
1.71 KB, patch
Details | Diff | Splinter Review
See comments in bug #53065. Additionally, we'll need to deploy this class. See bug #70143. This class will be the preferred string class for general operations, and for sharing across JS boundaries.
Blocks: 28221, 73009
Status: NEW → ASSIGNED
Also, rename to |nsSharable[C]String|.
Summary: Make |nsCommon[C]String| writable and add xpidl-string functionality → [API] Make |nsCommon[C]String| writable and add xpidl-string functionality
All planned string API fixes need to be in by mozilla1.0.
Target Milestone: --- → mozilla1.0
s/vidure/vidur/, sorry. All: see bug 18843 for why I needed to add this functionality.
Keywords: approval, patch, review
r=vidur on the patch. Presumably you'll clean up later and change all callers of |NS_AllocateContiguousHandleWithData| to use its new form?
sr=jst
this partial fix is checked in, more to come
See also (from bug 75220) the patch http://bugzilla.mozilla.org/showattachment.cgi?attach_id=34639 ...that I must checkin before I can continue in this bug.
Depends on: 75220
This class has been renamed, changing the summary accordingly.
Summary: [API] Make |nsCommon[C]String| writable and add xpidl-string functionality → [API] Make |nsSharable[C]String| writable and add xpidl-string functionality
...and as the renaming is now accomplished, no longer depends on bug 75220.
No longer depends on: 75220
Depends on: 85271
still want to add comments describing the mechanism and alternatives; and some debug machinery to count instances, find high-water marks, etc. looking for problems in this patch where I can accidentally end up with NULL
This code is passing all my tests. I believe the patch above is ready for review.
r=waterson
r=beard
I'm going to add all the assignment operators etc., needed to make both these classes |nsSharableC?String| and |nsXPIDLC?String| writable (as per the bug summary) before checking in. I'll get this re-reviewed after attaching those patches.
On second thought, I'm just going to check this in as soon as the tree is open. The assignment stuff is almost ready to go, but I don't want to stop this patch for that. I'll continue to use this bug for the patches.
cc'ing myself as I need to be able to append nsXPIDLStrings.
Blocks: 100751
Bug 104663 has been checked in, so nsSharableC?String should now be writable.
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 (you can query for this string to delete spam or retrieve the list of bugs I've moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
giving up ancient string bugs to the new string owner. jag, you'll want to sort through these and see which ones still apply and go with or against the direction in which you intend strings evolve
Assignee: scc → jaggernaut
Status: ASSIGNED → NEW
retargeting
Target Milestone: mozilla1.0.1 → Future
Target Milestone: Future → ---
This work is no longer relevant, strings have had a new implementation for a while now :-)
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: