Closed Bug 241061 Opened 21 years ago Closed 21 years ago

Action name exported by mozilla is messed up in at-poke

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Louie.Zhao, Assigned: Louie.Zhao)

References

Details

Attachments

(1 file)

Using at-poke to examine "action" of mozilla's element, the actoin name is messed up. This bug is caused by wrong cache of name string. Meanwhile, the current implementation will export the same action name for all actions of the element.
Attached patch patch v1Splinter Review
Attachment #146568 - Flags: review?(pkw)
Comment on attachment 146568 [details] [diff] [review] patch v1 Looks good.
Attachment #146568 - Flags: review?(pkw) → review+
Attachment #146568 - Flags: superreview?(Henry.Jia)
Attachment #146568 - Flags: superreview?(Henry.Jia) → superreview?(jst)
Comment on attachment 146568 [details] [diff] [review] patch v1 sr=henry
Attachment #146568 - Flags: superreview?(jst) → superreview+
Thanks for r and sr. Patch checked in trunk.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
+ void SetName(nsAString &aString) { mName = NS_ConvertUCS2toUTF8(aString); } CopyUTF16toUTF8(aString, mName) would have been better...
Biesi, can you tell us more about why that's better? We use it in several places.
it avoids one string copy. NS_ConvertUCS... itself converts the string; and then the assignment copies again. CopyUTF8To... just copies once. also see bug 209699 comment 0 (this is of course only an issue when assigning an NS_Convert... to something else)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: