Bug 1445392: Avoid posting a slotchange event microtask during shutdown. r=smaug

MozReview-Commit-ID: 1ga6cDVRX5
This commit is contained in:
Emilio Cobos Álvarez
2018-05-07 20:49:47 +02:00
parent f48fa2314c
commit df1cf6f50f
3 changed files with 11 additions and 3 deletions

View File

@@ -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;