www

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

commit 2facd4fcbdbc925dcbd6c85cc8b94bb5ae52ed52
parent 36cfad3933ea4f4bf1947b7369c226f6a9b479b0
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon,  5 Mar 2012 23:47:27 -0500

Fix cross-site document saving

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate_item.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js @@ -310,6 +310,10 @@ Zotero.Translate.ItemSaver.prototype = { || downloadAssociatedFiles; if(!shouldAttach) return; + if(attachment.document && "__wrappedDOMObject" in attachment.document) { + attachment.document = attachment.document.__wrappedDOMObject; + } + if(attachment.snapshot === false || !this._saveFiles) { // if snapshot is explicitly set to false, attach as link if(attachment.document) {