www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit de1df45444c9d7ce2bec6a1522eeb7b331b5db73
parent 5d622b91f0b38808e20783571b30b73cfa101d2d
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 23 Nov 2010 21:37:03 +0000

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


Diffstat:
Mchrome/content/zotero/webpagedump/domsaver.js | 14++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/chrome/content/zotero/webpagedump/domsaver.js b/chrome/content/zotero/webpagedump/domsaver.js @@ -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)