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:
Olli Pettay 2018-05-10 14:08:00 -04:00
Родитель cecb3eb9fb
Коммит a7be7cff43
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1230,7 +1230,7 @@ CustomElementReactionsStack::InvokeReactions(ElementQueue* aElementQueue,
MOZ_ASSERT(element);
RefPtr<CustomElementData> elementData = element->GetCustomElementData();
if (!elementData) {
if (!elementData || !element->GetOwnerGlobal()) {
// This happens when the document is destroyed and the element is already
// unlinked, no need to fire the callbacks in this case.
continue;