Changeset 147949 in webkit


Ignore:
Timestamp:
Apr 8, 2013 2:00:12 PM (11 years ago)
Author:
Beth Dakin
Message:

Crash in ScrollingCoordinator::mainThreadScrollingReasons() when going back
https://bugs.webkit.org/show_bug.cgi?id=114214
-and corresponding-
<rdar://problem/13208616>

Reviewed by Anders Carlsson.

When a page is restoring from the page cache, the mainFrame can have a null
Document. So we should null-check the Document here.

  • page/scrolling/ScrollingCoordinator.cpp:

(WebCore::ScrollingCoordinator::mainThreadScrollingReasons):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147942 r147949  
     12013-04-08  Beth Dakin  <bdakin@apple.com>
     2
     3        Crash in ScrollingCoordinator::mainThreadScrollingReasons() when going back
     4        https://bugs.webkit.org/show_bug.cgi?id=114214
     5        -and corresponding-
     6        <rdar://problem/13208616>
     7
     8        Reviewed by Anders Carlsson.
     9
     10        When a page is restoring from the page cache, the mainFrame can have a null
     11        Document. So we should null-check the Document here.
     12
     13        * page/scrolling/ScrollingCoordinator.cpp:
     14        (WebCore::ScrollingCoordinator::mainThreadScrollingReasons):
     15
    1162013-04-08  Andrei Bucur  <abucur@adobe.com>
    217
  • trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp

    r147749 r147949  
    459459    if (supportsFixedPositionLayers() && hasVisibleSlowRepaintViewportConstrainedObjects(frameView))
    460460        mainThreadScrollingReasons |= HasNonLayerViewportConstrainedObjects;
    461     if (m_page->mainFrame()->document()->isImageDocument())
     461    if (m_page->mainFrame()->document() && m_page->mainFrame()->document()->isImageDocument())
    462462        mainThreadScrollingReasons |= IsImageDocument;
    463463
Note: See TracChangeset for help on using the changeset viewer.