From 6b65bf06a41ad415187e4d4109d85fa041934c74 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 11 Oct 2006 03:52:31 +0000 Subject: [PATCH] closes #349, import/export failing on null sandbox URI i have no idea why some people are getting this error when it seems like no one encountered it during beta testing (very specific platform issues?), but i'm fairly certain that this should fix it. --- chrome/content/zotero/xpcom/translate.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js index c421a0474..ba7dd050c 100644 --- a/chrome/content/zotero/xpcom/translate.js +++ b/chrome/content/zotero/xpcom/translate.js @@ -578,8 +578,9 @@ Zotero.Translate.prototype._generateSandbox = function() { // set up selectItems handler this._sandbox.Zotero.selectItems = function(options) { return me._selectItems(options) }; } else { - // use null URL to create sandbox - this._sandbox = new Components.utils.Sandbox(""); + // use null URL to create sandbox. no idea why a blank string doesn't + // work on all installations, but this should fix things. + this._sandbox = new Components.utils.Sandbox("http://www.example.com/"); this._sandbox.Zotero = new Object(); this._sandbox.Zotero.Utilities = new Zotero.Utilities();