Blob Blame History Raw
#
#  Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1460295
#

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