Bug 1780455 - Fix an assertion to account for imagemap hacks. r=jwatt

I tried to add a crashtest without the video attachment and so on but
that didn't quite make it.

Differential Revision: https://phabricator.services.mozilla.com/D152374
This commit is contained in:
Emilio Cobos Álvarez 2022-07-21 15:57:14 +00:00
Родитель f52f8bd235
Коммит bf56ce8562
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -3015,7 +3015,8 @@ static void AssertNoFramesOrStyleDataInDescendants(Element& aElement) {
if (c == &aElement) {
continue;
}
MOZ_ASSERT(!c->GetPrimaryFrame());
// FIXME(emilio): The <area> check is needed because of bug 135040.
MOZ_ASSERT(!c->GetPrimaryFrame() || c->IsHTMLElement(nsGkAtoms::area));
MOZ_ASSERT(!c->IsElement() || !c->AsElement()->HasServoData());
}
}