Bug 862269

Summary: RFE: Save originating uri for downloaded files
Product: [Fedora] Fedora Reporter: Alexander Larsson <alexl>
Component: firefoxAssignee: Jan Horak <jhorak>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gecko-bugs-nobody, jhorak, tbzatek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-03 14:38:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.