Skip to content
  • berto@igalia.com's avatar
    [GTK] Closing inspector window crashes wk · c55ca377
    berto@igalia.com authored
    https://bugs.webkit.org/show_bug.cgi?id=110865
    
    Reviewed by Carlos Garcia Campos.
    
    Source/WebKit/gtk:
    
    Deleting priv->corePage during the destruction of a webView will
    trigger the deletion of InspectorFrontendClient. However that
    object is supposed to handle the webView's destroy signal first in
    order to do the necessary cleanup.
    
    The solution is to wait until webkit_web_view_dispose finishes
    before deleting priv->corePage.
    
    * webkit/webkitwebview.cpp:
    (webkit_web_view_dispose):
    
    Tools:
    
    Disconnect all signal handlers if the inspector window is
    destroyed.
    
    * GtkLauncher/LauncherInspectorWindow.c:
    (inspectorWindowDestroyed):
    (launcherInspectorWindowNew):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c55ca377