Partially revert 76e8ea835f
Apparently this doesn't work on Firefox 24. Sigh.
This commit is contained in:
parent
f45b219792
commit
dd5160cc73
|
@ -492,9 +492,7 @@ Zotero.Translate.SandboxManager.prototype = {
|
||||||
|
|
||||||
"_canCopy":function(obj) {
|
"_canCopy":function(obj) {
|
||||||
if(typeof obj !== "object" || obj === null) return false;
|
if(typeof obj !== "object" || obj === null) return false;
|
||||||
var proto = Object.getPrototypeOf(obj),
|
if((obj.constructor.name !== "Object" && obj.constructor.name !== "Array") ||
|
||||||
global = Components.utils.getGlobalForObject(obj);
|
|
||||||
if((proto !== global.Object.prototype && proto !== global.Array.prototype) ||
|
|
||||||
"__exposedProps__" in obj) {
|
"__exposedProps__" in obj) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user