From 3628c5aa188bc947a279761828ef3f1de61b8164 Mon Sep 17 00:00:00 2001 From: Gijs Kruitbosch Date: Thu, 13 Jul 2023 14:19:25 +0000 Subject: [PATCH] Bug 1842547 - ensure treecol label, crop and other attributes actually inherit correctly, a=diannaS Original Revision: https://phabricator.services.mozilla.com/D183207 Differential Revision: https://phabricator.services.mozilla.com/D183307 --- toolkit/content/widgets/tree.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toolkit/content/widgets/tree.js b/toolkit/content/widgets/tree.js index 36481713ceb53..322e42586ea4e 100644 --- a/toolkit/content/widgets/tree.js +++ b/toolkit/content/widgets/tree.js @@ -303,7 +303,7 @@ class MozTreecol extends MozElements.BaseControl { static get observedAttributes() { - return ["primary"]; + return ["primary", ...super.observedAttributes]; } static get inheritedAttributes() { @@ -411,7 +411,8 @@ this._resizeObserver = null; } - attributeChangedCallback() { + attributeChangedCallback(name, oldValue, newValue) { + super.attributeChangedCallback(name, oldValue, newValue); this._invalidate(); }