mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Attempt to fix a shutdown crash; don't refresh when we're removed from the document.
This commit is contained in:
parent
da3ad9140c
commit
3c1fa565f0
@ -234,7 +234,9 @@ nsXFormsInputElement::ParentChanged(nsIDOMElement *aNewParent)
|
||||
{
|
||||
// We need to re-evaluate our instance data binding when our parent
|
||||
// changes, since xmlns declarations in effect could have changed.
|
||||
Refresh();
|
||||
if (aNewParent)
|
||||
Refresh();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user