Closed Bug 266118 Opened 20 years ago Closed 20 years ago

Comment and code do not agree in nsXFormsInputElement

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allan, Assigned: bryner)

References

()

Details

Attachments

(1 file)

nsXFormsInputElement::OnCreated() states:
--- CUT ---
  // It's ok to keep a weak pointer to mElement.  mElement will have an
  // owning reference to this object, so as long as we null out mElement in
  // OnDestroyed, it will always be valid.
--- CUT ---
But nsXFormsInputElement::OnDestroyed() does not contain |mElement = nsnull;| ...
The patch in bug 271737, includes a fix for this
Depends on: 271737
Status: NEW → ASSIGNED
Attached patch FixSplinter Review
Comment on attachment 168609 [details] [diff] [review]
Fix

Newest path for bug 271737, does not include patch for this anymore.
Attachment #168609 - Flags: superreview?(darin)
Attachment #168609 - Flags: review?(smaug)
Comment on attachment 168609 [details] [diff] [review]
Fix

This is ok.

Another thing is that RemoveEventListener should actually happen in
WillChangeDocument.
Attachment #168609 - Flags: review?(smaug) → review+
Attachment #168609 - Flags: superreview?(darin) → superreview+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: