Closed
Bug 5684
Opened 25 years ago
Closed 25 years ago
nsGenericContainerElement::GetAttribute out param wrong and FIX
Categories
(Core :: Layout, defect, P3)
Tracking
()
VERIFIED
FIXED
M6
People
(Reporter: hjtoi-bugzilla, Assigned: vidur)
References
()
Details
When the method returns NS_CONTENT_ATTR_NOT_THERE (a success code if you do NS_SUCCEEDED()), it does not make the outgoing string empty, which it should. FIX: *** nsGenericElement.cpp Mon Apr 26 11:09:53 1999 --- nsGenericElement-fixed.cpp Thu Apr 29 11:35:54 1999 *************** *** 1779,1784 **** --- 1779,1792 ---- } } + if (rv == NS_CONTENT_ATTR_NOT_THERE) { + // In other cases we already set the out param. + // Since we are returning a success code we'd better do + // something about the out parameters (someone may have + // given us a non-empty string). + aResult.Truncate(); + } + return rv; }
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•25 years ago
|
Target Milestone: M6
Assignee | ||
Comment 1•25 years ago
|
||
Makes sense. I have it in my tree and will check it in after the M5 freeze.
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 2•25 years ago
|
||
Checked in on 5/5/1999.
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 3•25 years ago
|
||
Verified.
You need to log in
before you can comment on or make changes to this bug.
Description
•