⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 293286 in webkit


Ignore:
Timestamp:
Apr 22, 2022, 9:40:17 PM (4 years ago)
Author:
Simon Fraser
Message:

Crash under AsyncScrollingCoordinator::scrollingThreadAddedPendingUpdate()
https://bugs.webkit.org/show_bug.cgi?id=239683
<rdar://92198272>

Reviewed by Alan Bujtas.

Crash data suggest that m_page can be null in
AsyncScrollingCoordinator::scheduleRenderingUpdate(), which does seem possible because
scheduleRenderingUpdate() is a dispatch from the scrolling thread, and
ScrollingCoordinator::pageDestroyed() may have run before it runs.

  • page/scrolling/AsyncScrollingCoordinator.cpp:

(WebCore::AsyncScrollingCoordinator::scheduleRenderingUpdate):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r293285 r293286  
     12022-04-22  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Crash under AsyncScrollingCoordinator::scrollingThreadAddedPendingUpdate()
     4        https://bugs.webkit.org/show_bug.cgi?id=239683
     5        <rdar://92198272>
     6
     7        Reviewed by Alan Bujtas.
     8
     9        Crash data suggest that m_page can be null in
     10        AsyncScrollingCoordinator::scheduleRenderingUpdate(), which does seem possible because
     11        scheduleRenderingUpdate() is a dispatch from the scrolling thread, and
     12        ScrollingCoordinator::pageDestroyed() may have run before it runs.
     13
     14        * page/scrolling/AsyncScrollingCoordinator.cpp:
     15        (WebCore::AsyncScrollingCoordinator::scheduleRenderingUpdate):
     16
    1172022-04-22  Chris Dumez  <cdumez@apple.com>
    218
  • trunk/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp

    r290760 r293286  
    374374void AsyncScrollingCoordinator::scheduleRenderingUpdate()
    375375{
    376     m_page->scheduleRenderingUpdate(RenderingUpdateStep::ScrollingTreeUpdate);
     376    if (m_page)
     377        m_page->scheduleRenderingUpdate(RenderingUpdateStep::ScrollingTreeUpdate);
    377378}
    378379
Note: See TracChangeset for help on using the changeset viewer.