After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 537949 - Left-clicking on a file downloads it to /tmp
Left-clicking on a file downloads it to /tmp
Status: RESOLVED OBSOLETE
Product: epiphany
Classification: Core
Component: [obsolete] Backend:Mozilla
2.24.x
Other All
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 568153 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-06-12 08:55 UTC by Kai Willadsen
Modified: 2009-10-30 13:16 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Kai Willadsen 2008-06-12 08:55:06 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:
Comment 1 Filippo Argiolas 2008-07-27 13:47:20 UTC
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.
Comment 2 Cosimo Cecchi 2008-07-27 13:58:52 UTC
Thanks for tracking this down, Filippo.
CC-ing Sebastien.
Comment 3 Kai Willadsen 2008-07-27 15:36:29 UTC
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.
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2008-08-30 12:13:36 UTC
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
Comment 5 Diego Escalante Urrelo (not reading bugmail) 2008-08-30 13:15:08 UTC
The real problem is that auto download is forcing /tmp as the dest dir, I have no clue where this is decided, Christian?
Comment 6 Christian Persch 2008-09-29 18:52:46 UTC
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.... 
Comment 7 Pacho Ramos 2009-01-18 10:00:11 UTC
*** Bug 568153 has been marked as a duplicate of this bug. ***
Comment 8 Pacho Ramos 2009-01-18 10:01:12 UTC
Can you please edit summary pointing that files are always downloaded to /tmp ? It would help with searching in bugzilla 

Thanks :-)
Comment 9 Reinout van Schouwen 2009-01-18 22:59:57 UTC
Adjusted summary.

Chpe, can we target this for 2-26 or is that useless (i.e. most likely won't happen)?
Comment 10 Christian Persch 2009-01-18 23:09:30 UTC
See comment 6, we'd need to find a different fix for the other bug first (which I think is worse than this one)... 
Comment 11 Bernhard Koenig 2009-04-26 20:48:16 UTC
Can confirm this on jaunty. I guess this will not be fixed since Epiphany switches to webkit in 2.28?
Comment 12 Gustavo Noronha (kov) 2009-10-30 13:16:10 UTC
Right. This should not be a problem with 2.28.