www

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

commit b4ac43fd7758304cc71c9626cf0576aee284b78a
parent ef71d3f72991e3b0cb3cf8d73f0b4dac71eaf332
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 29 Apr 2016 13:09:37 -0400

Fix startup error on Firefox 48

Addresses #980. There are a couple other uses of the old API, but I'm not sure
how they're triggered, and we might be gone from Firefox before this is
relevant.

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

diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -152,15 +152,13 @@ Zotero.Translate.DOMWrapper = new function() { var _permit = { value: 'rw', writable: false, configurable: false, enumerable: true }; return { getOwnPropertyDescriptor: function(name) { return _permit; }, - getPropertyDescriptor: function(name) { return _permit; }, - getOwnPropertyNames: function() { throw Error("Can't enumerate ExposedPropsWaiver"); }, - getPropertyNames: function() { throw Error("Can't enumerate ExposedPropsWaiver"); }, + ownKeys: function() { throw Error("Can't enumerate ExposedPropsWaiver"); }, enumerate: function() { throw Error("Can't enumerate ExposedPropsWaiver"); }, defineProperty: function(name) { throw Error("Can't define props on ExposedPropsWaiver"); }, - delete: function(name) { throw Error("Can't delete props from ExposedPropsWaiver"); } + deleteProperty: function(name) { throw Error("Can't delete props from ExposedPropsWaiver"); } }; }; - ExposedPropsWaiver = Proxy.create(ExposedPropsWaiverHandler()); + ExposedPropsWaiver = new Proxy({}, ExposedPropsWaiverHandler()); function SpecialPowersHandler(obj, overrides) { this.wrappedObject = obj;