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();
|
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue