Open Bug 2015796 Opened 1 day ago Updated 1 day ago

Ensure reference target observers are removed from labeled descendants of nearest ancestor label in nsLabeledNodeList

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: alice, Unassigned)

References

(Blocks 1 open bug)

Details

In nsLabelsNodeList::WatchLabeledDescendantsOfNearestAncestorLabel(), reference target observers are added to labeled descendants of ancestor labels, since if a reference target changes such that a shadow host no longer has a labelable element as a descendant, the labelable element for the nsLabelsNodeList may come to be labeled by an ancestor label.

These observers need to be removed when the label is no longer an ancestor, or when the labeled element is destroyed.

You need to log in before you can comment on or make changes to this bug.