Changeset 65181 in webkit


Ignore:
Timestamp:
Aug 11, 2010 1:10:55 PM (14 years ago)
Author:
jhawkins@chromium.org
Message:

2010-08-11 James Hawkins <jhawkins@chromium.org>

Reviewed by Dmitry Titov.

[Chromium] Notify the WebFrameClient when the frame is detached from
the view. This is used to clear the cached frame in the FormManager.
Eventually this will be removed once handling forms is moved into
WebCore.
https://bugs.webkit.org/show_bug.cgi?id=43648

  • public/WebFrameClient.h: (WebKit::WebFrameClient::frameDetached):
  • src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::detachedFromParent3):
Location:
trunk/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r65168 r65181  
     12010-08-11  James Hawkins  <jhawkins@chromium.org>
     2
     3        Reviewed by Dmitry Titov.
     4
     5        [Chromium] Notify the WebFrameClient when the frame is detached from
     6        the view. This is used to clear the cached frame in the FormManager.
     7        Eventually this will be removed once handling forms is moved into
     8        WebCore.
     9        https://bugs.webkit.org/show_bug.cgi?id=43648
     10
     11        * public/WebFrameClient.h:
     12        (WebKit::WebFrameClient::frameDetached):
     13        * src/FrameLoaderClientImpl.cpp:
     14        (WebKit::FrameLoaderClientImpl::detachedFromParent3):
     15
    1162010-08-11  Dimitri Glazkov  <dglazkov@chromium.org>
    217
  • trunk/WebKit/chromium/public/WebFrameClient.h

    r65060 r65181  
    9191    // General notifications -----------------------------------------------
    9292
     93    // This frame has been detached from the view.
     94    //
     95    // FIXME: Do not use this in new code. Currently this is used by code in
     96    // Chromium that errantly caches WebKit objects.
     97    virtual void frameDetached(WebFrame*) { }
     98
    9399    // This frame is about to be closed.
    94100    virtual void willClose(WebFrame*) { }
  • trunk/WebKit/chromium/src/FrameLoaderClientImpl.cpp

    r65145 r65181  
    249249    // or crashes.
    250250    m_webFrame->frame()->script()->proxy()->clearForClose();
    251    
     251
     252    // Alert the client that the frame is being detached. This is the last
     253    // chance we have to communicate with the client.
     254    if (m_webFrame->client())
     255        m_webFrame->client()->frameDetached(m_webFrame);
     256
    252257    // Stop communicating with the WebFrameClient at this point since we are no
    253258    // longer associated with the Page.
Note: See TracChangeset for help on using the changeset viewer.