зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1438326. Don't try to enqueue custom element callbacks when the custom element definition has been unlinked. r=smaug
MozReview-Commit-ID: FLf6CJcpcVQ
This commit is contained in:
Родитель
8b92d81fee
Коммит
e278d7fdb7
|
@ -423,6 +423,11 @@ CustomElementRegistry::EnqueueLifecycleCallback(nsIDocument::ElementCallbackType
|
|||
definition->mLocalName != aCustomElement->NodeInfo()->NameAtom()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!definition->mCallbacks) {
|
||||
// definition has been unlinked. Don't try to mess with it.
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
auto callback =
|
||||
|
|
Загрузка…
Ссылка в новой задаче