Bug 118440

Summary: Tons of crashes on bots after r152425
Product: WebKit Reporter: Tim Horton <thorton>
Component: Layout and RenderingAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, bdakin, sam, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
none
patch sam: review+

Description Tim Horton 2013-07-05 21:31:35 PDT
In FrameView::max/minScrollPosition, m_frame->page() can be null (by design).
Comment 1 Radar WebKit Bug Importer 2013-07-05 21:32:53 PDT
<rdar://problem/14366772>
Comment 2 Tim Horton 2013-07-05 21:36:02 PDT
Created attachment 206184 [details]
patch
Comment 3 Tim Horton 2013-07-05 21:50:17 PDT
Created attachment 206185 [details]
patch
Comment 4 Sam Weinig 2013-07-05 21:53:32 PDT
Comment on attachment 206185 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=206185&action=review

> Source/WebCore/page/FrameView.cpp:1646
> +    if (Page* page = m_frame->page()) {

I would do an early return.

> Source/WebCore/page/FrameView.cpp:1658
> +    Page* page = m_frame->page();

I would early return here.
Comment 5 Tim Horton 2013-07-05 22:03:29 PDT
http://trac.webkit.org/changeset/152434