commit bb9a8fea44ee0ea26f90efaa808e4ea4bc03a9fb
parent ee505ef1c46808a97242ad01f354179421b6045a
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date: Thu, 1 Jan 2026 21:15:16 +0000
Bug 2007958 - Don't enqueue attribute change callbacks for aNotify=false changes. r=smaug
This has revealed some issues in the front-end but I don't think we want
to be firing these.
Differential Revision: https://phabricator.services.mozilla.com/D277697
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp
@@ -3232,8 +3232,8 @@ nsresult Element::SetAttrAndNotify(
}
}
- const CustomElementData* data = GetCustomElementData();
- if (data && data->mState == CustomElementData::State::eCustom) {
+ if (const CustomElementData* data = GetCustomElementData();
+ data && data->mState == CustomElementData::State::eCustom && aNotify) {
CustomElementDefinition* definition = data->GetCustomElementDefinition();
MOZ_ASSERT(definition, "Should have a valid CustomElementDefinition");