import from UXP: Make HTMLOptionsCollection::mSelect into a strong reference. (a3386fbe)

This commit is contained in:
2022-03-29 15:45:26 +08:00
parent 5179fc4acb
commit d4bcedec9c
4 changed files with 8 additions and 59 deletions
-5
View File
@@ -143,11 +143,6 @@ HTMLSelectElement::HTMLSelectElement(already_AddRefed<mozilla::dom::NodeInfo>& a
NS_EVENT_STATE_VALID);
}
HTMLSelectElement::~HTMLSelectElement()
{
mOptions->DropReference();
}
// ISupports
NS_IMPL_CYCLE_COLLECTION_CLASS(HTMLSelectElement)