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@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to