don't disable animation when saving snapshots in Fx4, as this appears to result in a crash
This commit is contained in:
parent
5d622b91f0
commit
de1df45444
1 changed files with 8 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue