Closed Bug 899436 Opened 12 years ago Closed 12 years ago

OS.File stat.lastModificationDate returns lastAccessDate on Windows

Categories

(Toolkit Graveyard :: OS.File, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(firefox24 fixed, firefox25 fixed)

RESOLVED FIXED
mozilla25
Tracking Status
firefox24 --- fixed
firefox25 --- fixed

People

(Reporter: markh, Assigned: markh)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Found via bug 898598. The give-away is the line in osfile_win_allthreads.jsm: this._lastModificationDate = lastAccessDate; :)
The tests seem to pass with this change, but I'm not sure if anything else is necessary?
Assignee: nobody → mhammond
Attachment #782958 - Flags: review?(dteller)
Ahaha, that would certainly be useful.
Comment on attachment 782958 [details] [diff] [review] osfile-last-modified-time.patch Review of attachment 782958 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks.
Attachment #782958 - Flags: review?(dteller) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Any chance of landing this in Firefox 24 for the ESR? It looks pretty straightforward, and this bug is preventing us from using OS.File for various fairly impactful things involving hundreds or thousands of files in Zotero. At best, it will require us to maintain two versions of code (asynchronous and synchronous) for another year, and Zotero users on the ESR will have significantly worse performance.
Looks pretty straightforward, I don't see any reason not to uplift. Mark, want to request approvals?
Comment on attachment 782958 [details] [diff] [review] osfile-last-modified-time.patch [Approval Request Comment] Bug caused by (feature/regressing bug #): Unknown User impact if declined: Addon authors are unable to OS.File in some contexts. Testing completed (on m-c, etc.): Landed on M-C on July 31. Risk to taking this patch (and alternatives if risky): Low risk, limited to OS.File functionality on Windows. String or IDL/UUID changes made by this patch: None Please see comment 6 and comment 7
Attachment #782958 - Flags: approval-mozilla-beta?
Attachment #782958 - Flags: approval-mozilla-aurora?
Attachment #782958 - Flags: approval-mozilla-beta?
Attachment #782958 - Flags: approval-mozilla-beta+
Attachment #782958 - Flags: approval-mozilla-aurora?
Attachment #782958 - Flags: approval-mozilla-aurora+
Sorry for the spam, it seems I mis-clicked on the flags
Assuming no verification needed here. Please add the verifyme keyword and remove the [qa-] whiteboard tag to request verification.
Whiteboard: [qa-]
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: