Bug 1422931 - Fix crash with slot element and make webcomponents preference per-doc

Tag #1375
This commit is contained in:
Matt A. Tobin 2020-04-17 07:25:14 -04:00 committed by Roy Tam
commit 3b90312fac
11 changed files with 45 additions and 5 deletions

View file

@ -7034,7 +7034,7 @@ nsContentUtils::IsContentInsertionPoint(nsIContent* aContent)
bool
nsContentUtils::HasDistributedChildren(nsIContent* aContent)
{
if (!aContent) {
if (!aContent || !nsDocument::IsWebComponentsEnabled(aContent)) {
return false;
}