don't disable animation when saving snapshots in Fx4, as this appears to result in a crash

This commit is contained in:
Simon Kornblith 2010-11-23 21:37:03 +00:00
parent 5d622b91f0
commit de1df45444

View file

@ -296,12 +296,14 @@ var wpdDOMSaver = {
aNode.StopPlay(); aNode.StopPlay();
dump ("ready! \n"); dump ("ready! \n");
} catch (e) {} */ } catch (e) {} */
try { if(!Zotero.isFx4) {
var container = aNode.QueryInterface(Components.interfaces.nsIImageLoadingContent) try {
.getRequest(Components.interfaces.nsIImageLoadingContent.CURRENT_REQUEST) var container = aNode.QueryInterface(Components.interfaces.nsIImageLoadingContent)
.image; .getRequest(Components.interfaces.nsIImageLoadingContent.CURRENT_REQUEST)
container.animationMode = Components.interfaces.imgIContainer.kDontAnimMode; .image;
} catch(e) {} container.animationMode = Components.interfaces.imgIContainer.kDontAnimMode;
} catch(e) {}
}
}, },
// get the node value of aNode directly from the actual DOM tree (WPD_CLONENODEBUG) // get the node value of aNode directly from the actual DOM tree (WPD_CLONENODEBUG)