From e30e3065ba1c5f162c279341951c13b401b757ec Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 11 Mar 2011 03:58:23 +0000 Subject: [PATCH] Add debug line for loadURI() fallback after failed file.launch() --- chrome/content/zotero/zoteroPane.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 18d4823cc..f060c96d8 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -3163,14 +3163,14 @@ var ZoteroPane = new function() this.loadURI(url, event, { attachmentID: itemID}); } else { - var fileURL = attachment.getLocalFileURL(); - // Some platforms don't have nsILocalFile.launch, so we just load it and // let the Firefox external helper app window handle it try { file.launch(); } catch (e) { + Zotero.debug("launch() not supported -- passing file to loadURI()"); + var fileURL = attachment.getLocalFileURL(); window.loadURI(fileURL); } }