[webkit-gtk] download with webkit
Gustavo Noronha Silva
gns at gnome.org
Mon May 31 06:24:18 PDT 2010
On Fri, 2010-05-28 at 19:01 +0000, Giovanni wrote:
> "//-------------funzione MIME--------------------//
> gboolean permessi (WebKitWebView *web_view, WebKitWebFrame *frame,
> WebKitNetworkRequest *request, gchar *mimetype, WebKitWebPolicyDecision
> *policy_decision)
> {
> if (webkit_web_view_can_show_mime_type (WEBKIT_WEB_VIEW (web_view),mimetype))
> return FALSE;
>
> webkit_web_policy_decision_download (policy_decision);
> webkit_web_view_stop_loading (WEBKIT_WEB_VIEW (web_view));
This looks wrong. You should not stop the load - the load will turn into
the download because of your policy decision. Having said that, it might
be a bug that your download callback is even reached, tbh, since you
stopped the load.
See you,
--
Gustavo Noronha Silva <gns at gnome.org>
GNOME Project
More information about the webkit-gtk
mailing list