icecat: add release icecat-140.10.1-1gnu1 for ecne

This commit is contained in:
Ark74 2026-05-04 16:58:41 -06:00
parent a5f93cb214
commit ff85d7c623
1256 changed files with 63469 additions and 24141 deletions

View file

@ -970,13 +970,22 @@ nsresult nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
return NS_OK;
}
nsIContent* node = *aOperation.mTemplateNode;
nsIContent* host = *aOperation.mHost;
if (MOZ_UNLIKELY(node->GetParentNode())) {
Detach(node, mBuilder);
if (MOZ_UNLIKELY(node->GetParentNode())) {
// Can this happen? If it can, give up.
return NS_OK;
}
}
// We failed to attach a new shadow root, so instead attach a template
// element and return its content.
nsHtml5TreeOperation::Append(*aOperation.mTemplateNode, *aOperation.mHost,
mBuilder);
nsHtml5TreeOperation::Append(node, host, mBuilder);
*aOperation.mFragHandle =
static_cast<HTMLTemplateElement*>(*aOperation.mTemplateNode)
->Content();
static_cast<HTMLTemplateElement*>(node)->Content();
nsContentUtils::LogSimpleConsoleError(
u"Failed to attach Declarative Shadow DOM."_ns, "DOM"_ns,
mBuilder->GetDocument()->IsInPrivateBrowsing(),
@ -988,6 +997,9 @@ nsresult nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
nsIContent* table = *(aOperation.mTable);
nsIContent* stackParent = *(aOperation.mStackParent);
nsIContent* fosterParent = GetFosterParent(table, stackParent);
if (fosterParent) {
mBuilder->HoldElement(do_AddRef(fosterParent));
}
*aOperation.mParentHandle = fosterParent;
return NS_OK;
}