[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.15.1-34-g43a6bb2

Gustavo Noronha Silva gustavo.noronha at collabora.co.uk
Wed Oct 7 06:25:56 UTC 2009


The following commit has been merged in the webkit-1.1 branch:
commit 5d6a9a63ee3ca7c5386034b5cc477d80be0b7acd
Author: xan at webkit.org <xan at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Sep 29 05:16:58 2009 +0000

    2009-09-29  Xan Lopez  <xlopez at 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):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48858 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/gtk/webkit/webkitsoupauthdialog.c b/WebKit/gtk/webkit/webkitsoupauthdialog.c
index 5ff2038..538dbfa 100644
--- a/WebKit/gtk/webkit/webkitsoupauthdialog.c
+++ b/WebKit/gtk/webkit/webkitsoupauthdialog.c
@@ -107,6 +107,11 @@ static void save_password_callback(SoupMessage* msg, WebKitAuthData* authData)
     if (msg->status_code != 401 && msg->status_code < 500)
         soup_auth_save_password(authData->auth, authData->username, authData->password);
 
+    /* Disconnect the callback. If the authentication succeeded we are
+     * done, and if it failed we'll create a new authData and we'll
+     * connect to 'got-headers' again in response_callback */
+    g_signal_handlers_disconnect_by_func(msg, save_password_callback, authData);
+
     free_authData(authData);
 }
 #endif

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list