Chromium Code Reviews
DescriptionFix a crash: SlotAssignment is unintentionally created for v0 shadow trees
HTMLSlotElement::insertedInto() creates SlotAssignment wrongly for a v0 shadow tree
because it does *not* check the type of the shadow root.
As a result, the entry for the slot would not be removed from the SlotAssignment
when the slot is removed from the shadow tree because HTMLSlotElement::removedFrom()
*does* check the type of the shadow root correctly.
This violates the assumption that a slot in an entry is always in a shadow root,
and hit the DCHECK, and causes a crash in a release build.
This CL fixes this unintentional wrong behavior.
BUG=634506
Committed: https://crrev.com/b43d492d6fdd6c44cade1de7c976c402d440a665
Cr-Commit-Position: refs/heads/master@{#412184}
Patch Set 1 #
Messages
Total messages: 13 (8 generated)
|
|||||||||||||||||||||||||||||||||||||