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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
INVALID
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
Details
Attachments
(1 file)
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8603067 -
Flags: review?(bugs)
Comment 2•9 years ago
|
||
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-
Assignee | ||
Comment 3•9 years ago
|
||
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
https://hg.mozilla.org/mozilla-central/rev/2623b743e4c3
Assignee: nobody → ehsan
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•