www

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

commit a334e1f462b2ebafd2f3e1108f075ed5f0bb4811
parent dd5132e10576cdb71151758eb05fe475c53d4049
Author: aurimasv <aurimas.dev@gmail.com>
Date:   Tue,  7 Jan 2014 22:02:15 -0600

Use documentURI/URL instead of location.href.
document.location is null after the document is detached from its parent window (e.g. after we navigate to a different page in the same hidden browser)

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -132,7 +132,7 @@ Zotero.Translate.Sandbox = { var nAttachments = attachments.length; for(var j=0; j<nAttachments; j++) { if(attachments[j].document) { - attachments[j].url = attachments[j].document.location.href; + attachments[j].url = attachments[j].document.documentURI || attachments[j].document.URL; attachments[j].mimeType = "text/html"; delete attachments[j].document; }