Changeset 234153 in webkit


Ignore:
Timestamp:
Jul 24, 2018 10:25:25 AM (6 years ago)
Author:
achristensen@apple.com
Message:

Remove WebFramePolicyListenerProxy::invalidate
https://bugs.webkit.org/show_bug.cgi?id=187833

Reviewed by Dean Jackson.

When we're invalidating the listener, calling ignore instead will at worst cause
an ignored message to be sent. The load will be cancelled either way.
Removing the invalidate method gets it closer to being a lambda.

  • UIProcess/WebFramePolicyListenerProxy.cpp:

(WebKit::WebFramePolicyListenerProxy::invalidate): Deleted.

  • UIProcess/WebFramePolicyListenerProxy.h:
  • UIProcess/WebFrameProxy.cpp:

(WebKit::WebFrameProxy::webProcessWillShutDown):
(WebKit::WebFrameProxy::setUpPolicyListenerProxy):

Location:
trunk/Source/WebKit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r234143 r234153  
     12018-07-24  Alex Christensen  <achristensen@webkit.org>
     2
     3        Remove WebFramePolicyListenerProxy::invalidate
     4        https://bugs.webkit.org/show_bug.cgi?id=187833
     5
     6        Reviewed by Dean Jackson.
     7
     8        When we're invalidating the listener, calling ignore instead will at worst cause
     9        an ignored message to be sent.  The load will be cancelled either way.
     10        Removing the invalidate method gets it closer to being a lambda.
     11
     12        * UIProcess/WebFramePolicyListenerProxy.cpp:
     13        (WebKit::WebFramePolicyListenerProxy::invalidate): Deleted.
     14        * UIProcess/WebFramePolicyListenerProxy.h:
     15        * UIProcess/WebFrameProxy.cpp:
     16        (WebKit::WebFrameProxy::webProcessWillShutDown):
     17        (WebKit::WebFrameProxy::setUpPolicyListenerProxy):
     18
    1192018-07-24  Chris Dumez  <cdumez@apple.com>
    220
  • trunk/Source/WebKit/UIProcess/WebFramePolicyListenerProxy.cpp

    r234009 r234153  
    5858}
    5959
    60 void WebFramePolicyListenerProxy::invalidate()
    61 {
    62     m_frame = nullptr;
    63 }
    64 
    6560bool WebFramePolicyListenerProxy::isMainFrame() const
    6661{
  • trunk/Source/WebKit/UIProcess/WebFramePolicyListenerProxy.h

    r234009 r234153  
    6969   
    7070    void setNavigation(Ref<API::Navigation>&&);
    71     void invalidate();
    7271   
    7372    void changeWebsiteDataStore(WebsiteDataStore&);
  • trunk/Source/WebKit/UIProcess/WebFrameProxy.cpp

    r234009 r234153  
    6666
    6767    if (m_activeListener) {
    68         m_activeListener->invalidate();
     68        m_activeListener->ignore();
    6969        m_activeListener = nullptr;
    7070    }
     
    192192{
    193193    if (m_activeListener)
    194         m_activeListener->invalidate();
     194        m_activeListener->ignore();
    195195    m_activeListener = WebFramePolicyListenerProxy::create(this, listenerID, policyListenerType);
    196196    return *static_cast<WebFramePolicyListenerProxy*>(m_activeListener.get());
Note: See TracChangeset for help on using the changeset viewer.