[webkit-dev] Download client

Naiem Shaik naiem.shaik at gmail.com
Thu Nov 15 21:40:19 PST 2007


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


More information about the webkit-dev mailing list