mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Bug 926361, make sure mutation observers can't see the parent when unbinding, r=jst
This commit is contained in:
parent
1a180f563e
commit
8d45c8a14d
@ -1173,7 +1173,9 @@ Element::UnbindFromTree(bool aDeep, bool aNullParent)
|
||||
nsIDocument::UnlockPointer();
|
||||
}
|
||||
if (GetParent()) {
|
||||
NS_RELEASE(mParent);
|
||||
nsINode* p = mParent;
|
||||
mParent = nullptr;
|
||||
NS_RELEASE(p);
|
||||
} else {
|
||||
mParent = nullptr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user