www

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

commit dd5160cc73a926bfd58f5d38bc0a6dbf30e3b446
parent f45b219792b369f971bbd7b706ec23a3d3eac3e9
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 23 Jun 2014 22:29:32 -0400

Partially revert 76e8ea835f1024beb52e2f260ddb4b5e12f05d1f

Apparently this doesn't work on Firefox 24. Sigh.

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate_firefox.js | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -492,9 +492,7 @@ Zotero.Translate.SandboxManager.prototype = { "_canCopy":function(obj) { if(typeof obj !== "object" || obj === null) return false; - var proto = Object.getPrototypeOf(obj), - global = Components.utils.getGlobalForObject(obj); - if((proto !== global.Object.prototype && proto !== global.Array.prototype) || + if((obj.constructor.name !== "Object" && obj.constructor.name !== "Array") || "__exposedProps__" in obj) { return false; }