Bug 1445392: Avoid posting a slotchange event microtask during shutdown. r=smaug
MozReview-Commit-ID: 1ga6cDVRX5
This commit is contained in:
@@ -220,6 +220,12 @@ HTMLSlotElement::EnqueueSlotChangeEvent()
|
||||
return;
|
||||
}
|
||||
|
||||
// FIXME(bug 1459704): Need to figure out how to deal with microtasks posted
|
||||
// during shutdown.
|
||||
if (gXPCOMThreadsShutDown) {
|
||||
return;
|
||||
}
|
||||
|
||||
DocGroup* docGroup = OwnerDoc()->GetDocGroup();
|
||||
if (!docGroup) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user