Dont clear our props if we're not changing owner documents. Bug 335333, r+sr=jst
This commit is contained in:
@@ -1782,7 +1782,7 @@ nsGenericElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
|
||||
|
||||
// Handle a change in our owner document.
|
||||
|
||||
if (oldOwnerDocument) {
|
||||
if (oldOwnerDocument && oldOwnerDocument != newOwnerDocument) {
|
||||
if (newOwnerDocument && HasProperties()) {
|
||||
// Copy UserData to the new document.
|
||||
oldOwnerDocument->CopyUserData(this, newOwnerDocument);
|
||||
|
||||
Reference in New Issue
Block a user