1758794
#
1758794
#  Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1460295
1758794
#
1758794
1758794
diff -Nrup mozilla/dom/base/nsStyledElement.cpp mozilla-OK/dom/base/nsStyledElement.cpp
1758794
--- mozilla/dom/base/nsStyledElement.cpp	2020-02-18 02:37:48.000000000 +0300
1758794
+++ mozilla-OK/dom/base/nsStyledElement.cpp	2021-12-10 04:38:29.914968192 +0300
1758794
@@ -75,6 +75,7 @@ nsStyledElement::SetInlineStyleDeclarati
1758794
   bool oldValueSet = false;
1758794
 
1758794
   bool hasListeners = aNotify &&
1758794
+    !Preferences::GetBool("dom.mutation-events.cssom.disabled", true) &&
1758794
     nsContentUtils::HasMutationListeners(this,
1758794
                                          NS_EVENT_BITS_MUTATION_ATTRMODIFIED,
1758794
                                          this);