Blame SOURCES/webkit-atk_crash.patch

05e78c
diff --git a/Source/WebCore/accessibility/AccessibilityObject.cpp b/Source/WebCore/accessibility/AccessibilityObject.cpp
05e78c
index f10a1519..523dfd46 100644
05e78c
--- a/Source/WebCore/accessibility/AccessibilityObject.cpp
05e78c
+++ b/Source/WebCore/accessibility/AccessibilityObject.cpp
05e78c
@@ -70,6 +70,7 @@
05e78c
 #include "RenderWidget.h"
05e78c
 #include "RenderedPosition.h"
05e78c
 #include "RuntimeEnabledFeatures.h"
05e78c
+#include "ScriptDisallowedScope.h"
05e78c
 #include "Settings.h"
05e78c
 #include "TextCheckerClient.h"
05e78c
 #include "TextCheckingHelper.h"
05e78c
@@ -1783,7 +1784,11 @@ void AccessibilityObject::updateBackingStore()
05e78c
     // Updating the layout may delete this object.
05e78c
     RefPtr<AccessibilityObject> protectedThis(this);
05e78c
     if (auto* document = this->document()) {
05e78c
-        if (!document->view()->layoutContext().isInRenderTreeLayout() && !document->inRenderTreeUpdate() && !document->inStyleRecalc())
05e78c
+        if (!document->view()->layoutContext().isInRenderTreeLayout()
05e78c
+            && !document->inRenderTreeUpdate()
05e78c
+            && !document->inStyleRecalc()
05e78c
+            && ScriptDisallowedScope::InMainThread::isScriptAllowed())
05e78c
+
05e78c
             document->updateLayoutIgnorePendingStylesheets();
05e78c
     }
05e78c
     updateChildrenIfNecessary();