Changeset 48858 in webkit


Ignore:
Timestamp:
Sep 28, 2009 10:16:58 PM (15 years ago)
Author:
xan@webkit.org
Message:

2009-09-29 Xan Lopez <xlopez@igalia.com>

Rubber-stamped by Eric Seidel.

[Gtk] Crash when saving a password
https://bugs.webkit.org/show_bug.cgi?id=28070

Disconnect the 'got-headers' callback when we are done with
it. The signal can be emitted more than once if the message is
retransmitted, but each time that happens authData is created
again and a new callback connected, so we have to get rid of the
old one (which will crash because we free authData).

  • webkit/webkitsoupauthdialog.c: (save_password_callback):
Location:
trunk/WebKit/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/gtk/ChangeLog

    r48753 r48858  
     12009-09-29  Xan Lopez  <xlopez@igalia.com>
     2
     3        Rubber-stamped by Eric Seidel.
     4
     5        [Gtk] Crash when saving a password
     6        https://bugs.webkit.org/show_bug.cgi?id=28070
     7
     8        Disconnect the 'got-headers' callback when we are done with
     9        it. The signal can be emitted more than once if the message is
     10        retransmitted, but each time that happens authData is created
     11        again and a new callback connected, so we have to get rid of the
     12        old one (which will crash because we free authData).
     13
     14        * webkit/webkitsoupauthdialog.c:
     15        (save_password_callback):
     16
    1172009-09-25  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
    218
  • trunk/WebKit/gtk/webkit/webkitsoupauthdialog.c

    r48115 r48858  
    108108        soup_auth_save_password(authData->auth, authData->username, authData->password);
    109109
     110    /* Disconnect the callback. If the authentication succeeded we are
     111     * done, and if it failed we'll create a new authData and we'll
     112     * connect to 'got-headers' again in response_callback */
     113    g_signal_handlers_disconnect_by_func(msg, save_password_callback, authData);
     114
    110115    free_authData(authData);
    111116}
Note: See TracChangeset for help on using the changeset viewer.