зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1460334 - Fix crash caused when attempting to migrate <deck> from a XBL binding to a Custom Element. r=peterv
--HG-- extra : amend_source : 461d41fa51087ce1cefc72df61a00e9cae5605e5
This commit is contained in:
Родитель
cecb3eb9fb
Коммит
a7be7cff43
|
@ -1230,7 +1230,7 @@ CustomElementReactionsStack::InvokeReactions(ElementQueue* aElementQueue,
|
||||||
MOZ_ASSERT(element);
|
MOZ_ASSERT(element);
|
||||||
|
|
||||||
RefPtr<CustomElementData> elementData = element->GetCustomElementData();
|
RefPtr<CustomElementData> elementData = element->GetCustomElementData();
|
||||||
if (!elementData) {
|
if (!elementData || !element->GetOwnerGlobal()) {
|
||||||
// This happens when the document is destroyed and the element is already
|
// This happens when the document is destroyed and the element is already
|
||||||
// unlinked, no need to fire the callbacks in this case.
|
// unlinked, no need to fire the callbacks in this case.
|
||||||
continue;
|
continue;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче