www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d5fcde0612023befa026a8de3dbe877e5626a641
parent 84c5a1bffac7dfaf9ddb4e8861f27e026eb6de41
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  8 Aug 2013 15:19:37 -0400

Disable OS.File for file syncs on Windows <Fx25

stat.lastModificationDate returns the last access date
instead of the modification date due to bug
https://bugzilla.mozilla.org/show_bug.cgi?id=899436

Diffstat:
Mchrome/content/zotero/xpcom/storage.js | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js @@ -811,8 +811,12 @@ Zotero.Sync.Storage = new function () { var numItems = items.length; var updatedStates = {}; - // OS.File didn't work reliably before Firefox 23, so use the old code - if (Zotero.platformMajorVersion < 23) { + // OS.File didn't work reliably before Firefox 23, and on Windows it returns + // the access time instead of the modification time until Firefox 25 + // (https://bugzilla.mozilla.org/show_bug.cgi?id=899436), + // so use the old code + if (Zotero.platformMajorVersion < 23 + || (Zotero.isWin && Zotero.platformMajorVersion < 25)) { Zotero.debug("Performing synchronous file update check"); for each(var item in items) {