Changeset 77104 in webkit


Ignore:
Timestamp:
Jan 30, 2011 8:06:43 PM (13 years ago)
Author:
ggaren@apple.com
Message:

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

Reviewed by Sam Weinig.

[Take 2!]
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): Use MESSAGE_CHECK because we don't think we should be able to reach this state under normal conditions.
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r77102 r77104  
     12011-01-30  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        [Take 2!]
     6        Fixed crash on window close (maybe crash on launch?) due to missing 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): Use MESSAGE_CHECK because
     14        we don't think we should be able to reach this state under normal conditions.
     15
    1162011-01-30  Geoffrey Garen  <ggaren@apple.com>
    217
  • trunk/Source/WebKit2/UIProcess/WebContext.cpp

    r77102 r77104  
    5353#endif
    5454
     55#define MESSAGE_CHECK(assertion) MESSAGE_CHECK_BASE(assertion, process()->connection())
     56
    5557using namespace WebCore;
    5658
     
    300302{
    301303    WebFrameProxy* frame = m_process->webFrame(frameID);
    302     if (!frame || !frame->page())
     304    MESSAGE_CHECK(frame);
     305    if (!frame->page())
    303306        return;
    304307   
     
    309312{
    310313    WebFrameProxy* frame = m_process->webFrame(frameID);
    311     if (!frame || !frame->page())
     314    MESSAGE_CHECK(frame);
     315    if (!frame->page())
    312316        return;
    313317   
     
    318322{
    319323    WebFrameProxy* frame = m_process->webFrame(frameID);
    320     if (!frame || !frame->page())
     324    MESSAGE_CHECK(frame);
     325    if (!frame->page())
    321326        return;
    322327   
     
    327332{
    328333    WebFrameProxy* frame = m_process->webFrame(frameID);
    329     if (!frame || !frame->page())
     334    MESSAGE_CHECK(frame);
     335    if (!frame->page())
    330336        return;
    331337
Note: See TracChangeset for help on using the changeset viewer.