From a961519a5641adce704a901ed2d8e6280713a98b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 12 Jul 2022 22:22:17 +0000 Subject: [PATCH] style: Propagate flags from original property to aliases Even we don't have internal aliases right now (and that seems a bit silly) we do have pref-gated aliases. An alias ID passed to IsEnabled with the wrong EnabledState would misbehave, assert, and crash. Though we don't have such callers in the tree because InspectorUtils passes only arguments that make us not look at the flags, it seems more reliable this way. Differential Revision: https://phabricator.services.mozilla.com/D151594 --- components/style/properties/data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/components/style/properties/data.py b/components/style/properties/data.py index ac1de39f877..9c085d20509 100644 --- a/components/style/properties/data.py +++ b/components/style/properties/data.py @@ -584,6 +584,7 @@ class Alias(object): self.gecko_pref = gecko_pref self.transitionable = original.transitionable self.rule_types_allowed = original.rule_types_allowed + self.flags = original.flags @staticmethod def type():