Bug 1452839: Adjust an assertion to account for the document node. r=me

MozReview-Commit-ID: 9DUFOIlGdr5
This commit is contained in:
Emilio Cobos Álvarez 2018-04-10 14:39:34 +02:00
parent 8a388f1428
commit cdfc46b1e5
3 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,8 @@
<html>
<script>
document.addEventListener('DOMContentLoaded', () => {
document.appendChild(document.createComment(''));
document.documentElement.remove();
})
</script>
</html>

View File

@ -529,3 +529,4 @@ load 1442506.html
load 1437155.html
load 1443027-1.html
load 1448841-1.html
load 1452839.html

View File

@ -8183,7 +8183,7 @@ nsCSSFrameConstructor::ContentRemoved(nsIContent* aChild,
// being suppressed due to us anyway.
if (aOldNextSibling && aFlags == REMOVE_CONTENT &&
GetParentType(parentType) == eTypeBlock) {
MOZ_ASSERT(aChild->GetParent(),
MOZ_ASSERT(aChild->GetParentNode(),
"How did we have a sibling without a parent?");
// Adjacent whitespace-only text nodes might have been suppressed if
// this node does not have inline ends. Create frames for them now