Changeset 88953 in webkit


Ignore:
Timestamp:
Jun 15, 2011 10:12:59 AM (13 years ago)
Author:
andersca@apple.com
Message:

2011-06-15 Anders Carlsson <andersca@apple.com>

Reviewed by Dan Bernstein.

Ignore responsiveness timer callbacks on closed pages
https://bugs.webkit.org/show_bug.cgi?id=62735
<rdar://problem/9511295>

  • UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::close): Use nullptr instead of clear.

(WebKit::WebPageProxy::processDidBecomeUnresponsive):
Return early if the page isn't valid.

(WebKit::WebPageProxy::processDidBecomeResponsive):
Ditto.

(WebKit::WebPageProxy::updateBackingStoreDiscardableState):
Assert that the page is valid.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r88944 r88953  
     12011-06-15  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        Ignore responsiveness timer callbacks on closed pages
     6        https://bugs.webkit.org/show_bug.cgi?id=62735
     7        <rdar://problem/9511295>
     8
     9        * UIProcess/WebPageProxy.cpp:
     10        (WebKit::WebPageProxy::close):
     11        Use nullptr instead of clear.
     12
     13        (WebKit::WebPageProxy::processDidBecomeUnresponsive):
     14        Return early if the page isn't valid.
     15
     16        (WebKit::WebPageProxy::processDidBecomeResponsive):
     17        Ditto.
     18
     19        (WebKit::WebPageProxy::updateBackingStoreDiscardableState):
     20        Assert that the page is valid.
     21
    1222011-06-15  Sheriff Bot  <webkit.review.bot@gmail.com>
    223
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r88839 r88953  
    379379    m_uiClient.initialize(0);
    380380
    381     m_drawingArea.clear();
     381    m_drawingArea = nullptr;
    382382
    383383    process()->send(Messages::WebPage::Close(), m_pageID);
     
    28662866void WebPageProxy::processDidBecomeUnresponsive()
    28672867{
     2868    if (!isValid())
     2869        return;
     2870
    28682871    updateBackingStoreDiscardableState();
    28692872
     
    28732876void WebPageProxy::processDidBecomeResponsive()
    28742877{
     2878    if (!isValid())
     2879        return;
     2880   
    28752881    updateBackingStoreDiscardableState();
    28762882
     
    31923198void WebPageProxy::updateBackingStoreDiscardableState()
    31933199{
     3200    ASSERT(isValid());
     3201
    31943202    bool isDiscardable;
    31953203
Note: See TracChangeset for help on using the changeset viewer.