Changeset 79064 in webkit


Ignore:
Timestamp:
Feb 18, 2011 6:22:56 PM (13 years ago)
Author:
weinig@apple.com
Message:

Real fix for <rdar://problem/9025723> CrashTracer: [USER]
1 crash in WebProcess at com.apple.WebKit2:
WebKit::WebPage::didChangeScrollOffsetForMainFrame + 31

Reviewed by Adele Peterson.

  • WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:

(WebKit::WebFrameLoaderClient::didChangeScrollOffset):
Add null check for the FrameView. This function can be called when the
FrameView is being torn down during a transition to a new FrameView.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::didChangeScrollOffsetForMainFrame):
Revert last attempt.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r79059 r79064  
     12011-02-18  Sam Weinig  <sam@webkit.org>
     2
     3        Reviewed by Adele Peterson.
     4
     5        Real fix for <rdar://problem/9025723> CrashTracer: [USER]
     6        1 crash in WebProcess at com.apple.WebKit2:
     7        WebKit::WebPage::didChangeScrollOffsetForMainFrame + 31
     8
     9        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
     10        (WebKit::WebFrameLoaderClient::didChangeScrollOffset):
     11        Add null check for the FrameView. This function can be called when the
     12        FrameView is being torn down during a transition to a new FrameView.
     13
     14        * WebProcess/WebPage/WebPage.cpp:
     15        (WebKit::WebPage::didChangeScrollOffsetForMainFrame):
     16        Revert last attempt.
     17
    1182011-02-18  Anders Carlsson  <andersca@apple.com>
    219
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp

    r79025 r79064  
    13031303        return;
    13041304
     1305    // If this is called when tearing down a FrameView, the WebCore::Frame's
     1306    // current FrameView will be null.
     1307    if (!m_frame->coreFrame()->view())
     1308        return;
     1309
    13051310    webPage->didChangeScrollOffsetForMainFrame();
    13061311}
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r79057 r79064  
    16861686{
    16871687    Frame* frame = m_page->mainFrame();
    1688     if (!frame)
    1689         return;
    1690 
    16911688    IntPoint scrollPosition = frame->view()->scrollPosition();
    16921689    IntPoint maximumScrollPosition = frame->view()->maximumScrollPosition();
Note: See TracChangeset for help on using the changeset viewer.