mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1452839: Adjust an assertion to account for the document node. r=me
MozReview-Commit-ID: 9DUFOIlGdr5
This commit is contained in:
parent
8a388f1428
commit
cdfc46b1e5
8
layout/base/crashtests/1452839.html
Normal file
8
layout/base/crashtests/1452839.html
Normal file
@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
document.appendChild(document.createComment(''));
|
||||
document.documentElement.remove();
|
||||
})
|
||||
</script>
|
||||
</html>
|
@ -529,3 +529,4 @@ load 1442506.html
|
||||
load 1437155.html
|
||||
load 1443027-1.html
|
||||
load 1448841-1.html
|
||||
load 1452839.html
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user