Title: [289337] branches/safari-613-branch/Source/WebCore
Revision
289337
Author
[email protected]
Date
2022-02-07 18:57:20 -0800 (Mon, 07 Feb 2022)

Log Message

Cherry-pick r288933. rdar://problem/87402941

    Crash under ScrollingCoordinatorMac::hasNodeWithAnimatedScrollChanged()
    https://bugs.webkit.org/show_bug.cgi?id=235989
    <rdar://87402941>

    Reviewed by Wenson Hsieh.

    Crash data suggest that m_scrollingCoordinator can be null in ThreadedScrollingTree::hasNodeWithAnimatedScrollChanged(),
    which is true if the scrolling tree keeps ThreadedScrollingTree alive longer than the scrolling coordinator.

    As in the other functions in this file, early return if m_scrollingCoordinator is null.

    * page/scrolling/ThreadedScrollingTree.cpp:
    (WebCore::ThreadedScrollingTree::hasNodeWithAnimatedScrollChanged):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288933 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (289336 => 289337)


--- branches/safari-613-branch/Source/WebCore/ChangeLog	2022-02-08 02:57:17 UTC (rev 289336)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog	2022-02-08 02:57:20 UTC (rev 289337)
@@ -1,5 +1,42 @@
 2022-02-07  Russell Epstein  <[email protected]>
 
+        Cherry-pick r288933. rdar://problem/87402941
+
+    Crash under ScrollingCoordinatorMac::hasNodeWithAnimatedScrollChanged()
+    https://bugs.webkit.org/show_bug.cgi?id=235989
+    <rdar://87402941>
+    
+    Reviewed by Wenson Hsieh.
+    
+    Crash data suggest that m_scrollingCoordinator can be null in ThreadedScrollingTree::hasNodeWithAnimatedScrollChanged(),
+    which is true if the scrolling tree keeps ThreadedScrollingTree alive longer than the scrolling coordinator.
+    
+    As in the other functions in this file, early return if m_scrollingCoordinator is null.
+    
+    * page/scrolling/ThreadedScrollingTree.cpp:
+    (WebCore::ThreadedScrollingTree::hasNodeWithAnimatedScrollChanged):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-02-01  Simon Fraser  <[email protected]>
+
+            Crash under ScrollingCoordinatorMac::hasNodeWithAnimatedScrollChanged()
+            https://bugs.webkit.org/show_bug.cgi?id=235989
+            <rdar://87402941>
+
+            Reviewed by Wenson Hsieh.
+
+            Crash data suggest that m_scrollingCoordinator can be null in ThreadedScrollingTree::hasNodeWithAnimatedScrollChanged(),
+            which is true if the scrolling tree keeps ThreadedScrollingTree alive longer than the scrolling coordinator.
+
+            As in the other functions in this file, early return if m_scrollingCoordinator is null.
+
+            * page/scrolling/ThreadedScrollingTree.cpp:
+            (WebCore::ThreadedScrollingTree::hasNodeWithAnimatedScrollChanged):
+
+2022-02-07  Russell Epstein  <[email protected]>
+
         Cherry-pick r288922. rdar://problem/88172449
 
     [WP] Remove PostScript conversion code

Modified: branches/safari-613-branch/Source/WebCore/page/scrolling/ThreadedScrollingTree.cpp (289336 => 289337)


--- branches/safari-613-branch/Source/WebCore/page/scrolling/ThreadedScrollingTree.cpp	2022-02-08 02:57:17 UTC (rev 289336)
+++ branches/safari-613-branch/Source/WebCore/page/scrolling/ThreadedScrollingTree.cpp	2022-02-08 02:57:20 UTC (rev 289337)
@@ -377,6 +377,9 @@
 
 void ThreadedScrollingTree::hasNodeWithAnimatedScrollChanged(bool hasNodeWithAnimatedScroll)
 {
+    if (!m_scrollingCoordinator)
+        return;
+
     RunLoop::main().dispatch([scrollingCoordinator = m_scrollingCoordinator, hasNodeWithAnimatedScroll] {
         scrollingCoordinator->hasNodeWithAnimatedScrollChanged(hasNodeWithAnimatedScroll);
     });
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to