[webkit-gtk] New API to add and retrieve (full) cookies via the CookieManager

Mario Sanchez Prada mario at webkit.org
Thu Oct 5 06:57:55 PDT 2017


Quick follow-up email to mention that talking about this with the work mate
who actually sparked the idea (Juan Pablo Ugarte), he made a good point on
that it would be nice to add one more function to the API to allow removing
a specific cookie, as that would make it more complete.

Infrastructure in the lower layers seems to be mostly in place, so I'm
thinking of something really simple for it:

void
webkit_cookie_manager_delete_cookie (WebKitCookieManager *manager,
                                     SoupCookie *cookie,
                                     GCancellable *cancellable,
                                     GAsyncReadyCallback callback,
                                     gpointer user_data);

 * @cookie: A #SoupCookie matching the name, value, domain and path of
            the one to be removed from the internal #SoupCookieJar.


gboolean
webkit_cookie_manager_delete_cookie_finish (WebKitCookieManager *manager,
                                            GAsyncResult *result,
                                            GError **error);

 * Returns %TRUE if the cookie was removed, otherwise it returns %FALSE
   with @error set accordingly.


More thoughts?

Thanks,
Mario


More information about the webkit-gtk mailing list