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

Differential Revision: https://phabricator.services.mozilla.com/D8965
This commit is contained in:
Jonathan Kingston
2018-11-29 15:31:46 +00:00
parent a29ecec580
commit 9e6dc50779
15 changed files with 23 additions and 157 deletions

View File

@@ -109,8 +109,8 @@ HTMLAreaElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
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);