Changeset 152367 in webkit


Ignore:
Timestamp:
Jul 3, 2013 10:35:13 AM (11 years ago)
Author:
sergio@webkit.org
Message:

[GTK][WK2] SIGSEV in WebKit::WebPageContextMenuClient::customContextMenuItemSelected
https://bugs.webkit.org/show_bug.cgi?id=116867

Reviewed by Anders Carlsson.

We did not reset the clients on WebPageProxy::close(), so right
clicking on a link after starting the navigation to some other
page was causing crashes because code was trying to access an
already freed m_contextMenuClient.

There were some other clients that could potentially trigger the
same issues. Reset them all to null to prevent this situation.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::close):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r152357 r152367  
     12013-07-03  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        [GTK][WK2] SIGSEV in WebKit::WebPageContextMenuClient::customContextMenuItemSelected
     4        https://bugs.webkit.org/show_bug.cgi?id=116867
     5
     6        Reviewed by Anders Carlsson.
     7
     8        We did not reset the clients on WebPageProxy::close(), so right
     9        clicking on a link after starting the navigation to some other
     10        page was causing crashes because code was trying to access an
     11        already freed m_contextMenuClient.
     12
     13        There were some other clients that could potentially trigger the
     14        same issues. Reset them all to null to prevent this situation.
     15
     16        * UIProcess/WebPageProxy.cpp:
     17        (WebKit::WebPageProxy::close):
     18
    1192013-07-03  Simon Pena  <simon.pena@samsung.com>
    220
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r152190 r152367  
    630630
    631631    m_estimatedProgress = 0.0;
    632    
     632
    633633    m_loaderClient.initialize(0);
    634634    m_policyClient.initialize(0);
     635    m_formClient.initialize(0);
    635636    m_uiClient.initialize(0);
    636637#if PLATFORM(EFL)
    637638    m_uiPopupMenuClient.initialize(0);
     639#endif
     640    m_findClient.initialize(0);
     641    m_findMatchesClient.initialize(0);
     642#if ENABLE(CONTEXT_MENUS)
     643    m_contextMenuClient.initialize(0);
    638644#endif
    639645
Note: See TracChangeset for help on using the changeset viewer.