From dd5160cc73a926bfd58f5d38bc0a6dbf30e3b446 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 23 Jun 2014 22:29:32 -0400 Subject: [PATCH] Partially revert 76e8ea835f1024beb52e2f260ddb4b5e12f05d1f Apparently this doesn't work on Firefox 24. Sigh. --- chrome/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 index 032108245..4f4930573 100644 --- 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; }