www

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

commit a8efc1b874096ed049026c954222a59389687e65
parent e0e4699c3e33fd9dcb9f00ab2ddb440067ebd9a9
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 29 Oct 2012 15:51:53 -0400

Fix search translation for Firefox 17 sandboxing changes

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

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -2097,7 +2097,10 @@ Zotero.Translate.Search.prototype.complete = function(returnValue, error) { /** * Pass search item to detect* and do* functions */ -Zotero.Translate.Search.prototype._getParameters = function() { return [this.search]; }; +Zotero.Translate.Search.prototype._getParameters = function() { + if(Zotero.isFx) return [this._sandboxManager.sandbox.Zotero._transferItem(JSON.stringify(this.search))]; + return [this.search]; +}; /** * Extract sandbox location from translator target