Bug 862269 - RFE: Save originating uri for downloaded files
Summary: RFE: Save originating uri for downloaded files
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Horak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-02 13:51 UTC by Alexander Larsson
Modified: 2013-04-22 13:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-10-03 14:38:06 UTC
Type: Bug


Attachments (Terms of Use)

Description Alexander Larsson 2012-10-02 13:51:19 UTC
It would be nice if firefox could save the original uri for downloaded files.
This is pretty easy to do with GIO using gvfs metadata. I implemented this in
webkit:

https://bugs.webkit.org/show_bug.cgi?id=95188

Its a pretty trivial patch, so it should be easy to add to firefox too.

We want to use this to e.g. show the original location in the download directory in nautilus.

Comment 1 Jan Horak 2012-10-03 14:38:06 UTC
We're going to track this issue on upstream: 
https://bugzilla.mozilla.org/show_bug.cgi?id=797349

Comment 2 Jan Horak 2013-04-22 07:54:52 UTC
FYI patch seems to introduce some regression, looks like g_file_set_attribute is blocking execution somehow:

https://bugzilla.mozilla.org/show_bug.cgi?id=860213#c7

Comment 3 Tomáš Bžatek 2013-04-22 13:22:39 UTC
(In reply to comment #2)
> FYI patch seems to introduce some regression, looks like
> g_file_set_attribute is blocking execution somehow:
> 
> https://bugzilla.mozilla.org/show_bug.cgi?id=860213#c7

It seems you're calling g_file_set_attribute() which is a synchronous call. Better to use g_file_set_attributes_async() instead.


Note You need to log in before you can comment on or make changes to this bug.