Bug 1472431, nodes in Shadow DOM aren't orphan, if they are in composed document, r=mccr8

This commit is contained in:
Olli Pettay 2018-07-01 22:28:17 +03:00
parent 02175d436a
commit b053857985

View File

@ -2103,7 +2103,7 @@ class OrphanReporter : public JS::ObjectPrivateVisitor
// https://bugzilla.mozilla.org/show_bug.cgi?id=773533#c11 explains
// that we have to skip XBL elements because they violate certain
// assumptions. Yuk.
if (node && !node->IsInUncomposedDoc() &&
if (node && !node->IsInComposedDoc() &&
!(node->IsElement() && node->AsElement()->IsInNamespace(kNameSpaceID_XBL)))
{
// This is an orphan node. If we haven't already handled the