diff --git a/modules/lib/animationManager.js b/modules/lib/animationManager.js index 9e2748c3..c8572cb4 100644 --- a/modules/lib/animationManager.js +++ b/modules/lib/animationManager.js @@ -67,7 +67,10 @@ if (typeof window == 'undefined' || addTask : function(aTask, aBeginningValue, aTotalChange, aDuration, aRelatedWindow) { - if (!aRelatedWindow && window && window instanceof window.Window) + if (!aRelatedWindow && + window && + typeof window.Window == 'function' && + window instanceof window.Window) aRelatedWindow = window; if (!aTask || !aRelatedWindow) return;