Changeset 229523 in webkit


Ignore:
Timestamp:
Mar 12, 2018 2:10:23 AM (6 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r229396 - REGRESSION(r218089): [GTK] webkit_web_view_get_inspector() needs to be called, otherwise inspector does not close
https://bugs.webkit.org/show_bug.cgi?id=181126

Reviewed by Carlos Alberto Lopez Perez.

Fix the condition to decide whether to detach the inspector view ourselves.

  • UIProcess/gtk/WebInspectorProxyGtk.cpp:

(WebKit::WebInspectorProxy::platformDetach): Remove the inspector view from its parent if we don't have a client
or the client didn't detach it.

Location:
releases/WebKitGTK/webkit-2.20/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.20/Source/WebKit/ChangeLog

    r229311 r229523  
     12018-03-07  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        REGRESSION(r218089): [GTK] webkit_web_view_get_inspector() needs to be called, otherwise inspector does not close
     4        https://bugs.webkit.org/show_bug.cgi?id=181126
     5
     6        Reviewed by Carlos Alberto Lopez Perez.
     7
     8        Fix the condition to decide whether to detach the inspector view ourselves.
     9
     10        * UIProcess/gtk/WebInspectorProxyGtk.cpp:
     11        (WebKit::WebInspectorProxy::platformDetach): Remove the inspector view from its parent if we don't have a client
     12        or the client didn't detach it.
     13
    1142018-03-06  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • releases/WebKitGTK/webkit-2.20/Source/WebKit/UIProcess/gtk/WebInspectorProxyGtk.cpp

    r224575 r229523  
    397397
    398398    GRefPtr<GtkWidget> inspectorView = m_inspectorView;
    399     if (m_client && !m_client->detach(*this)) {
     399    if (!m_client || !m_client->detach(*this)) {
    400400        // Detach is called when m_isAttached is true, but it could called before
    401401        // the inspector is opened if the inspector is shown/closed quickly. So,
Note: See TracChangeset for help on using the changeset viewer.