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.
We're going to track this issue on upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=797349
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
(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.