diff options
author | Xan Lopez <xan@src.gnome.org> | 2003-11-28 07:46:32 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2003-11-28 07:46:32 +0800 |
commit | 493334ce5b250010cd55fddfef9d83470b6d0c70 (patch) | |
tree | b0ca55562c16790de3626e99f38e0aa75e735e5a /embed/mozilla/MozDownload.h | |
parent | 9bba3e204ba22f682e2ab211f9fccf760ae58a93 (diff) | |
download | gsoc2013-epiphany-493334ce5b250010cd55fddfef9d83470b6d0c70.tar gsoc2013-epiphany-493334ce5b250010cd55fddfef9d83470b6d0c70.tar.gz gsoc2013-epiphany-493334ce5b250010cd55fddfef9d83470b6d0c70.tar.bz2 gsoc2013-epiphany-493334ce5b250010cd55fddfef9d83470b6d0c70.tar.lz gsoc2013-epiphany-493334ce5b250010cd55fddfef9d83470b6d0c70.tar.xz gsoc2013-epiphany-493334ce5b250010cd55fddfef9d83470b6d0c70.tar.zst gsoc2013-epiphany-493334ce5b250010cd55fddfef9d83470b6d0c70.zip |
Do not blindly overwrite when downloading a file with the same name than a
* embed/mozilla/ContentHandler.cpp:
* embed/mozilla/EphyHeaderSniffer.cpp:
* embed/mozilla/MozDownload.cpp:
* embed/mozilla/MozDownload.h:
Do not blindly overwrite when downloading a file with the same
name than a local one, append a number after the name.
Fixes (more or less) #12775
Diffstat (limited to 'embed/mozilla/MozDownload.h')
-rw-r--r-- | embed/mozilla/MozDownload.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embed/mozilla/MozDownload.h b/embed/mozilla/MozDownload.h index 89d20b8c3..930e110b8 100644 --- a/embed/mozilla/MozDownload.h +++ b/embed/mozilla/MozDownload.h @@ -80,6 +80,7 @@ nsresult InitiateMozillaDownload (nsIDOMDocument *domDocument, nsIURI *sourceUri nsILocalFile* inDestFile, const char *contentType, nsIURI* inOriginalURI, MozillaEmbedPersist *embedPersist, nsIInputStream *postData, nsISupports *aCacheKey); +nsresult BuildDownloadPath (const char *defaultFileName, nsILocalFile **_retval); class MozDownload : public nsIDownload, public nsIWebProgressListener |