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

@ -23,7 +23,6 @@ HTMLFieldSetElement::HTMLFieldSetElement(
: nsGenericHTMLFormControlElement(std::move(aNodeInfo),
FormControlType::Fieldset),
mElements(nullptr),
mFirstLegend(nullptr),
mInvalidElementsCount(0) {
// <fieldset> is always barred from constraint validation.
SetBarredFromConstraintValidation(true);
@ -41,7 +40,7 @@ HTMLFieldSetElement::~HTMLFieldSetElement() {
NS_IMPL_CYCLE_COLLECTION_INHERITED(HTMLFieldSetElement,
nsGenericHTMLFormControlElement, mValidity,
mElements)
mElements, mFirstLegend)
NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED(HTMLFieldSetElement,
nsGenericHTMLFormControlElement,
@ -110,6 +109,7 @@ void HTMLFieldSetElement::InsertChildBefore(nsIContent* aChild,
nsIContent* aBeforeThis,
bool aNotify, ErrorResult& aRv) {
bool firstLegendHasChanged = false;
RefPtr<nsIContent> oldFirstLegend = mFirstLegend;
if (aChild->IsHTMLElement(nsGkAtoms::legend)) {
if (!mFirstLegend) {
@ -134,6 +134,7 @@ void HTMLFieldSetElement::InsertChildBefore(nsIContent* aChild,
nsGenericHTMLFormControlElement::InsertChildBefore(aChild, aBeforeThis,
aNotify, aRv);
if (aRv.Failed()) {
mFirstLegend = oldFirstLegend;
return;
}