Changeset 93311 in webkit


Ignore:
Timestamp:
Aug 18, 2011 8:51:27 AM (13 years ago)
Author:
caio.oliveira@openbossa.org
Message:

[GTK] Change webview API tests to use "load-status" signal instead of "load-progress"
https://bugs.webkit.org/show_bug.cgi?id=66243

Reviewed by Martin Robinson.

The idle_quit_loop_cb() already checks the "load-status" flag, so it is enough to
call it only when the "load-status" change.

This change is important in the context of bug 28851, which aims to change the
order in which "progress finished" and "load finished" callbacks are called. In
this new scenario, at the progress callback the load will never be finished.

  • tests/testwebview.c:

(test_webkit_web_view_grab_focus):

Location:
trunk/Source/WebKit/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/gtk/ChangeLog

    r93303 r93311  
     12011-08-18  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
     2
     3        [GTK] Change webview API tests to use "load-status" signal instead of "load-progress"
     4        https://bugs.webkit.org/show_bug.cgi?id=66243
     5
     6        Reviewed by Martin Robinson.
     7
     8        The idle_quit_loop_cb() already checks the "load-status" flag, so it is enough to
     9        call it only when the "load-status" change.
     10
     11        This change is important in the context of bug 28851, which aims to change the
     12        order in which "progress finished" and "load finished" callbacks are called. In
     13        this new scenario, at the progress callback the load will never be finished.
     14
     15        * tests/testwebview.c:
     16        (test_webkit_web_view_grab_focus):
     17
    1182011-08-17  Adam Roben  <aroben@apple.com>
    219
  • trunk/Source/WebKit/gtk/tests/testwebview.c

    r90627 r93311  
    168168    loop = g_main_loop_new(NULL, TRUE);
    169169
    170     g_signal_connect(view, "notify::progress", G_CALLBACK (idle_quit_loop_cb), NULL);
     170    g_signal_connect(view, "notify::load-status", G_CALLBACK(idle_quit_loop_cb), NULL);
    171171
    172172    /* Wait for window to show up */
     
    236236
    237237    g_object_connect(G_OBJECT(view),
    238                      "signal::notify::progress", idle_quit_loop_cb, NULL,
     238                     "signal::notify::load-status", idle_quit_loop_cb, NULL,
    239239                     NULL);
    240240
Note: See TracChangeset for help on using the changeset viewer.