[webkit-dev] Download client
Brady Eidson
beidson at apple.com
Thu Nov 15 21:47:30 PST 2007
In FrameLoaderClientGtk.cpp, I see that
void FrameLoaderClient::download(ResourceHandle*, const
ResourceRequest&, const ResourceRequest&, const ResourceResponse&)
is not implemented.
Until it is, it would seem that WebKitGtk is incapable of downloading
files, even if you set its policy to do so.
Brady
On Nov 15, 2007, at 9:40 PM, Naiem Shaik wrote:
> Hi All,
> There is download client implemented in Gtk,
> ./WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp, but in this the
> policy is always set to PolicyUse.
>
> So I have added code as below in
> FrameLoaderClient::dispatchDecidePolicyForMIMEType()
>
> if (MIMETypeRegistry::isSupportedNonImageMIMEType(mimeType) ||
> MIMETypeRegistry::isSupportedImageMIMEType(mimeType))
> (core(m_frame)->loader()->*policyFunction)(PolicyUse);
> else
> (core(m_frame)->loader()->*policyFunction)(PolicyDownload);
>
>
> The question I have is, where is the file stored if PolicyDownload
> is given.
> I am testing it using the WebKitTools/GtkLauncher and nothing happens
> when I click the download button.
>
> Can somebody please help me fix this.
>
> Best Regards,
> Naiem
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20071115/39c4d7b8/attachment.html
More information about the webkit-dev
mailing list