Closed Bug 1162789 Opened 9 years ago Closed 9 years ago

Drop HTMLFormControlsCollection::mForm when the it gets destroyed by the cycle collector

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

Attachments

(1 file)

      No description provided.
Comment on attachment 8603067 [details] [diff] [review]
Drop HTMLFormControlsCollection::mForm when the it gets destroyed by the cycle collector

I think the idea here is that mForm is non-null until the form element is actually about to be deleted.
HTMLFormControlsCollection isn't exactly consistent with null checking mForm, and
this change makes null pointer crashes more likely (if we somehow bring element back to life after unlinking, and that has happened historically).


(I thought you were going to fix some other mForm usage)
Attachment #8603067 - Flags: review?(bugs) → review-
Oh, I see.  I'll add a comment about this to the CC macro to make it more obvious.

(The other mForm issue is bug 1162765.)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
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: