From b607f36586b29a9cd1a64656354c39d34e26fc2f Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Fri, 25 Sep 2015 17:24:55 +0900 Subject: [PATCH] Update library to fix broken preferences dialog at Firefox 42 See: https://github.com/piroor/treestyletab/issues/944#issuecomment-143146598 --- modules/lib/animationManager.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/lib/animationManager.js b/modules/lib/animationManager.js index 92ef6125..7dd03f63 100644 --- a/modules/lib/animationManager.js +++ b/modules/lib/animationManager.js @@ -41,7 +41,7 @@ if (typeof window == 'undefined' || } (function() { - const currentRevision = 19; + const currentRevision = 20; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; @@ -78,9 +78,13 @@ if (typeof window == 'undefined' || if (this._windows.indexOf(aRelatedWindow) < 0) this._windows.push(aRelatedWindow); + var startTime = aRelatedWindow ? aRelatedWindow.mozAnimationStartTime : undefined; + // mozAnimationStartTime is removed at Firefox 42. + // see: https://bugzilla.mozilla.org/show_bug.cgi?id=909154 + startTime = startTime || Date.now(); this.tasks.push({ task : aTask, - start : aRelatedWindow ? aRelatedWindow.mozAnimationStartTime : Date.now(), + start : startTime, beginning : aBeginningValue, change : aTotalChange, duration : aDuration,