commit 04fb50528c11a3f27bd6103049d28c8262df863f
parent 94bb513d9241e5ef01f989be35c103c707f3b141
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 22 Jan 2012 11:23:35 -0500
Move locales.xml retrieval into try
Fixes "Access to restricted URI denied" issue on Ubuntu
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js
@@ -126,8 +126,8 @@ Zotero.Cite.System.retrieveItem = function(item) {
Zotero.Cite.System.retrieveLocale = function(lang) {
var protHandler = Components.classes["@mozilla.org/network/protocol;1?name=chrome"]
.createInstance(Components.interfaces.nsIProtocolHandler);
- var channel = protHandler.newChannel(protHandler.newURI("chrome://zotero/content/locale/csl/locales-"+lang+".xml", "UTF-8", null));
try {
+ var channel = protHandler.newChannel(protHandler.newURI("chrome://zotero/content/locale/csl/locales-"+lang+".xml", "UTF-8", null));
var rawStream = channel.open();
} catch(e) {
return false;