From fc078caddff68dba33d05182bc8f9619b9b96ad9 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 17 Jun 2011 21:25:05 +0000 Subject: [PATCH] Addresses #1829: [PATCH] wpdDOMSaver fails due to undefined Zotero Removes calls to Zotero object, since they are unnecessary (the call that was problematic was a workaround for a Fx 4 beta crashing bug). --- chrome/content/zotero/webpagedump/domsaver.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/chrome/content/zotero/webpagedump/domsaver.js b/chrome/content/zotero/webpagedump/domsaver.js index d68d6fa42c..785c0d3170 100644 --- a/chrome/content/zotero/webpagedump/domsaver.js +++ b/chrome/content/zotero/webpagedump/domsaver.js @@ -296,14 +296,12 @@ var wpdDOMSaver = { aNode.StopPlay(); dump ("ready! \n"); } 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) {} - } + 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) @@ -654,7 +652,7 @@ var wpdDOMSaver = { catch (e) { var msg = "Unable to access cssRules property of " + aCSS.href + " in wpdDOMSaver.processCSSRecursively()"; - Zotero.debug(msg, 2); + dump("WebPageDump: "+msg+"\n\n", 2); Components.utils.reportError(msg); return ""; }