In FrameView::notifyPageThatContentAreaWillPaint(), we should null-check variable page, which is common usage pattern throughout the rest of FrameView.cpp.
Created attachment 121199 [details] null-check variable 'page', to follow the usage pattern of m_frame->page() throughout the rest of FrameView.cpp.
<rdar://problem/10603538>
Comment on attachment 121199 [details] null-check variable 'page', to follow the usage pattern of m_frame->page() throughout the rest of FrameView.cpp. There are several other places in FrameView.cpp that don't do the null check. It would be strange if a pageless frame were to be painted! Does this fix an actual crash?
(In reply to comment #3) > (From update of attachment 121199 [details]) > There are several other places in FrameView.cpp that don't do the null check. > > It would be strange if a pageless frame were to be painted! Does this fix an actual crash? It fixed a hard-to-reproduce crash in iOS.
Comment on attachment 121199 [details] null-check variable 'page', to follow the usage pattern of m_frame->page() throughout the rest of FrameView.cpp. I guess it's OK to add = another null check (there is enough confusion about when they are needed in this file already). It would be much better to find out why anyone would call notifyPageThatContentAreaWillPaint() when there is no page, and they are not painting, and fix that instead.
(In reply to comment #5) > (From update of attachment 121199 [details]) > I guess it's OK to add = another null check (there is enough confusion about when they are needed in this file already). > > It would be much better to find out why anyone would call notifyPageThatContentAreaWillPaint() when there is no page, and they are not painting, and fix that instead. thanks Alexey! Let's land this first and I will keep trying to find a reproducible case.
Comment on attachment 121199 [details] null-check variable 'page', to follow the usage pattern of m_frame->page() throughout the rest of FrameView.cpp. Clearing flags on attachment: 121199 Committed r104260: <http://trac.webkit.org/changeset/104260>
All reviewed patches have been landed. Closing bug.