Closed Bug 1768317 Opened 2 years ago Closed 11 months ago

`InsertTextTransaction::GetData` should be replaced with new API which returns `const` reference

Categories

(Core :: DOM: Editor, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Its style is the standard manner of the XPCOM era. However, it depends on the XPCOM string implementation whether it does or does not cause unnecessarily copying string buffer. So for avoiding the dependency, there should be an API to return const reference of the string.

Severity: -- → S3
Priority: -- → P3
Severity: S3 → N/A
Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/0d6b6b755754
Make `InsertTextTransaction::GetData()` returns reference of its `mStringToInsert` r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: