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();
dump ("ready! \n");
} catch (e) {} */
try {
var container = aNode.QueryInterface(Components.interfaces.nsIImageLoadingContent)
.getRequest(Components.interfaces.nsIImageLoadingContent.CURRENT_REQUEST)
.image;
container.animationMode = Components.interfaces.imgIContainer.kDontAnimMode;
} catch(e) {}
if(!Zotero.isFx4) {
try {
var container = aNode.QueryInterface(Components.interfaces.nsIImageLoadingContent)
.getRequest(Components.interfaces.nsIImageLoadingContent.CURRENT_REQUEST)
.image;
container.animationMode = Components.interfaces.imgIContainer.kDontAnimMode;
} catch(e) {}
}
},
// get the node value of aNode directly from the actual DOM tree (WPD_CLONENODEBUG)