Changeset 56679 in webkit


Ignore:
Timestamp:
Mar 27, 2010 10:34:30 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-27 Sergio Villar Senin <svillar@igalia.com>

Reviewed by Eric Seidel.

Print didStartProvisionalLoadForFrame in the callback of
notify::load-status property change notification

[GTK] Improve reporting of frame loader callbacks in DRT
https://bugs.webkit.org/show_bug.cgi?id=36454

  • DumpRenderTree/gtk/DumpRenderTree.cpp: (webInspectorCloseWindow): (webInspectorInspectWebView): (createWebView): added connection to notify::load-status and signal callback
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r56677 r56679  
     12010-03-27  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Print didStartProvisionalLoadForFrame in the callback of
     6        notify::load-status property change notification
     7
     8        [GTK] Improve reporting of frame loader callbacks in DRT
     9        https://bugs.webkit.org/show_bug.cgi?id=36454
     10
     11        * DumpRenderTree/gtk/DumpRenderTree.cpp:
     12        (webInspectorCloseWindow):
     13        (webInspectorInspectWebView):
     14        (createWebView): added connection to notify::load-status and
     15        signal callback
     16
    1172010-03-27  Chris Jerdonek  <cjerdonek@webkit.org>
    218
  • trunk/WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp

    r56674 r56679  
    824824}
    825825
     826static void webViewLoadStatusNotified(WebKitWebView* view, gpointer user_data)
     827{
     828    WebKitLoadStatus loadStatus = webkit_web_view_get_load_status(view);
     829
     830    if (loadStatus == WEBKIT_LOAD_PROVISIONAL) {
     831        char* frameName = getFrameNameSuitableForTestResult(view, mainFrame);
     832        printf("%s - didStartProvisionalLoadForFrame\n", frameName);
     833        g_free(frameName);
     834    }
     835}
     836
    826837static WebKitWebView* createWebView()
    827838{
     
    850861                     NULL);
    851862
     863    g_signal_connect(view,
     864                     "notify::load-status", G_CALLBACK(webViewLoadStatusNotified),
     865                     NULL);
     866
    852867    WebKitWebInspector* inspector = webkit_web_view_get_inspector(view);
    853868    g_object_connect(G_OBJECT(inspector),
Note: See TracChangeset for help on using the changeset viewer.