Changeset 77102 in webkit


Ignore:
Timestamp:
Jan 30, 2011 7:36:07 PM (13 years ago)
Author:
ggaren@apple.com
Message:

2011-01-30 Geoffrey Garen <ggaren@apple.com>

Reviewed by Maciej Stachowiak.

Fixed crash on window close (maybe crash on launch?) due to missing
frame null checks
https://bugs.webkit.org/show_bug.cgi?id=53408

  • UIProcess/WebContext.cpp: (WebKit::WebContext::didNavigateWithNavigationData): (WebKit::WebContext::didPerformClientRedirect): (WebKit::WebContext::didPerformServerRedirect): (WebKit::WebContext::didUpdateHistoryTitle): Check for NULL, since we're calling a function that can return it.
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r77092 r77102  
     12011-01-30  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Fixed crash on window close (maybe crash on launch?) due to missing
     6        frame null checks
     7        https://bugs.webkit.org/show_bug.cgi?id=53408
     8
     9        * UIProcess/WebContext.cpp:
     10        (WebKit::WebContext::didNavigateWithNavigationData):
     11        (WebKit::WebContext::didPerformClientRedirect):
     12        (WebKit::WebContext::didPerformServerRedirect):
     13        (WebKit::WebContext::didUpdateHistoryTitle): Check for NULL, since we're
     14        calling a function that can return it.
     15
    1162011-01-30  Balazs Kelemen  <kbalazs@webkit.org>
    217
  • trunk/Source/WebKit2/UIProcess/WebContext.cpp

    r76916 r77102  
    300300{
    301301    WebFrameProxy* frame = m_process->webFrame(frameID);
    302     if (!frame->page())
     302    if (!frame || !frame->page())
    303303        return;
    304304   
     
    309309{
    310310    WebFrameProxy* frame = m_process->webFrame(frameID);
    311     if (!frame->page())
     311    if (!frame || !frame->page())
    312312        return;
    313313   
     
    318318{
    319319    WebFrameProxy* frame = m_process->webFrame(frameID);
    320     if (!frame->page())
     320    if (!frame || !frame->page())
    321321        return;
    322322   
     
    327327{
    328328    WebFrameProxy* frame = m_process->webFrame(frameID);
    329     if (!frame->page())
     329    if (!frame || !frame->page())
    330330        return;
    331331
Note: See TracChangeset for help on using the changeset viewer.