Open Bug 733954 Opened 13 years ago Updated 2 months ago

Option to Preserve Last-Modified Date on Downloaded Files

Categories

(Toolkit :: Downloads API, enhancement)

enhancement

Tracking

()

People

(Reporter: david, Unassigned)

References

Details

Generally, file-transfer applications preserve a file's last-modified time-stamp. An option to allow this in Mozilla applications was developed and then rejected under bug #178506. This would still be a desired capability by some users, evidenced by the 31 votes in favor of bug #178506 and the 1,100 users of the Preserve Download Modification Timestamp extension reported by addons.mozilla.org. This newer RFE merely requests an option, thus avoiding disturbing those who prefer that the last-modified time-stamp reflect when a file was downloaded. This RFE is submitted because the Preserve Download Modification Timestamp is apparently no longer being maintained. The install.rdf file indicates compatibility through Firefox 4.0.* and SeaMonkey 2.1b3. The current browser versions are Firefox 10.0.2 and SeaMonkey 2.7.2. Yes, the install.rdf file can be tweaked to make the extension compatible with current browser versions; and there are other compatibility mitigations. However, an extension can at best be considered only a workaround for a bug or desired capability and not an actual solution.
Depends on: 918188
Product: Core → Firefox
Bug #907764 and bug #918188 needed to be fixed if the Preserve Download Modification Timestamp extension were ever to be fixed as an alternative to the implementation of this RFE. Both of those bug reports have now been closed as WontFix with the explanations " ... legacy extensions are not supported anymore." This illustrates why the implementation of wanted capabilities cannot depend on extensions other than as temporary workarounds. No longer is there an alternative to the implementation of this RFE.
It is impossible to implement this in Web Extensions. downloads.DownloadItem does not have the HTTP response header nor the last modified timestamp. downloads.download() does not generate webRequest events, therefore it is impossible to get the HTTP response header and the last modified timestamp by intercepting HTTP requests. The most annoying part is downloaded files cannot be accessed for security reasons. Last modified timestamp of files can only be set by external executable through native messaging. I agree setting last modified timestamp of files should have native support.
Severity: normal → S3

Are there any updates on this issue?

Component: General → Downloads API
Product: Core → Toolkit
OS: Windows XP → Unspecified
Hardware: x86 → Unspecified
You need to log in before you can comment on or make changes to this bug.