Closed Bug 778104 Opened 13 years ago Closed 13 years ago

NS_IMPL_STRING_ATTR incorrectly uses bool as nsresult

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: ayg, Assigned: ayg)

References

Details

Attachments

(1 file)

Looks like this is due to bug 742549. NS_IMPL_STRING_ATTR previously called GetAttrHelper, which called GetAttr, ignored the value, and always returned NS_OK. Bug 742549 changed it to return the result of GetAttr, which is a bool, not nsresult.
Er, oops. SetAttr and GetAttr have different return types... The GetAttr case should just always return NS_OK. Want to patch and I'll review?
Assignee: nobody → ayg
Status: NEW → ASSIGNED
Attached patch PatchSplinter Review
Attachment #647115 - Flags: review?(bzbarsky)
Attachment #647115 - Flags: review?(bzbarsky) → review+
Flags: in-testsuite-
Target Milestone: --- → mozilla17
Status: ASSIGNED → RESOLVED
Closed: 13 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: