mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 741250 - Fix "ASSERTION: Item in list without parent". r=bz
This commit is contained in:
parent
d7d3434d2f
commit
78986af44e
9
content/html/content/crashtests/741250.xhtml
Normal file
9
content/html/content/crashtests/741250.xhtml
Normal file
@ -0,0 +1,9 @@
|
||||
<input form="f" id="x" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<form id="f"></form>
|
||||
<script>
|
||||
window.addEventListener("load", function() {
|
||||
var x = document.getElementById("x");
|
||||
x.appendChild(x.cloneNode(true));
|
||||
}, false);
|
||||
</script>
|
||||
</input>
|
@ -34,3 +34,4 @@ load 682058.xhtml
|
||||
load 682460.html
|
||||
load 673853.html
|
||||
load 738744.xhtml
|
||||
load 741250.xhtml
|
||||
|
@ -2366,7 +2366,10 @@ nsFormControlList::AddElementToTable(nsGenericHTMLFormElement* aChild,
|
||||
// the list in the hash
|
||||
nsSimpleContentList *list = new nsSimpleContentList(mForm);
|
||||
|
||||
NS_ASSERTION(content->GetParent(), "Item in list without parent");
|
||||
// If an element has a @form, we can assume it *might* be able to not have
|
||||
// a parent and still be in the form.
|
||||
NS_ASSERTION(content->HasAttr(kNameSpaceID_None, nsGkAtoms::form) ||
|
||||
content->GetParent(), "Item in list without parent");
|
||||
|
||||
// Determine the ordering between the new and old element.
|
||||
bool newFirst = nsContentUtils::PositionIsBefore(aChild, content);
|
||||
|
Loading…
Reference in New Issue
Block a user