Title: [289393] branches/safari-613.1.16.1-branch/Source/WebCore
- Revision
- 289393
- Author
- [email protected]
- Date
- 2022-02-08 10:55:48 -0800 (Tue, 08 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.1.16.1-branch/Source/WebCore/ChangeLog (289392 => 289393)
--- branches/safari-613.1.16.1-branch/Source/WebCore/ChangeLog 2022-02-08 18:55:45 UTC (rev 289392)
+++ branches/safari-613.1.16.1-branch/Source/WebCore/ChangeLog 2022-02-08 18:55:48 UTC (rev 289393)
@@ -1,5 +1,42 @@
2022-02-08 Alan Coon <[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-08 Alan Coon <[email protected]>
+
Cherry-pick r288922. rdar://problem/88172449
[WP] Remove PostScript conversion code
Modified: branches/safari-613.1.16.1-branch/Source/WebCore/page/scrolling/ThreadedScrollingTree.cpp (289392 => 289393)
--- branches/safari-613.1.16.1-branch/Source/WebCore/page/scrolling/ThreadedScrollingTree.cpp 2022-02-08 18:55:45 UTC (rev 289392)
+++ branches/safari-613.1.16.1-branch/Source/WebCore/page/scrolling/ThreadedScrollingTree.cpp 2022-02-08 18:55:48 UTC (rev 289393)
@@ -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