GNOME Bugzilla – Bug 537949
Left-clicking on a file downloads it to /tmp
Last modified: 2009-10-30 13:16:10 UTC
Please describe the problem: Left-clicking on a link to a file downloads the file and opens it. In previous versions of Epiphany (i.e., before 2.22.2) the file would be downloaded to the location specified in the preferences. Now, it seems to be downloaded to /tmp. Right-click->Download Link still downloads the file to the correct location. Steps to reproduce: Go to http://ftp.gnome.org/pub/GNOME/sources/epiphany/2.22/ Click on epiphany-2.22.2.tar.bz2 Watch the file download and open Open Download directory Actual results: The downloaded file is placed in some unspecified directory (actually, /tmp). Expected results: The file should be placed in the directory specified in Preferences->Download folder. Does this happen every time? Yup Other information:
I confirm this but I believe it's an ubuntu specific issue. Take a look at https://bugs.launchpad.net/epiphany-browser/+bug/236116 in the part specific to the auto-download patch.
Thanks for tracking this down, Filippo. CC-ing Sebastien.
Well, I'm the original reporter, and I'm using Fedora... so it's definitely not Ubuntu-specific. A brief look at the possibilities suggests that the changes in SVN revision 8205 might be to blame, but that's a blatant guess.
Confirmed, I can reproduce here in Ubuntu, ephy built from svn. The revision referred by Kai might be the culprit: diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp index 2762231..abe3401 100644 --- a/embed/mozilla/ContentHandler.cpp +++ b/embed/mozilla/ContentHandler.cpp @@ -384,11 +384,13 @@ NS_METHOD GContentHandler::MIMEInitiateAction (void) } } +#ifndef HAVE_GECKO_1_9 if (auto_downloads) { mAction = CONTENT_ACTION_OPEN; } else +#endif /* !HAVE_GECKO_1_9 */ { mAction = CONTENT_ACTION_OPEN_TMP; } See comment #18 in bug #513837: http://bugzilla.gnome.org/show_bug.cgi?id=513837#c18
The real problem is that auto download is forcing /tmp as the dest dir, I have no clue where this is decided, Christian?
This (/tmp) happens inside gecko, we can't change that. So we would need to back out the patch from bug 513837 and find a different fix for it....
*** Bug 568153 has been marked as a duplicate of this bug. ***
Can you please edit summary pointing that files are always downloaded to /tmp ? It would help with searching in bugzilla Thanks :-)
Adjusted summary. Chpe, can we target this for 2-26 or is that useless (i.e. most likely won't happen)?
See comment 6, we'd need to find a different fix for the other bug first (which I think is worse than this one)...
Can confirm this on jaunty. I guess this will not be fixed since Epiphany switches to webkit in 2.28?
Right. This should not be a problem with 2.28.