Bug 903372 - Removal of xml:base. r=baku

Differential Revision: https://phabricator.services.mozilla.com/D13457
This commit is contained in:
Jonathan Kingston
2018-12-13 15:16:52 +00:00
parent df91fb541b
commit 7fe03e93db
17 changed files with 34 additions and 236 deletions

View File

@@ -82,8 +82,8 @@ nsresult HTMLAreaElement::BindToTree(nsIDocument* aDocument,
}
void HTMLAreaElement::UnbindFromTree(bool aDeep, bool aNullParent) {
// If this link is ever reinserted into a document, it might
// be under a different xml:base, so forget the cached state now.
// Without removing the link state we risk a dangling pointer
// in the mStyledLinks hashtable
Link::ResetLinkState(false, Link::ElementHasHref());
nsGenericHTMLElement::UnbindFromTree(aDeep, aNullParent);