From d7fb8637d7c43079e4511ca45370c199b1dbac66 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 14 Oct 2010 14:48:01 -0400 Subject: [PATCH] Fix File on non-Minefield builds. --- common/modules/storage.jsm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/modules/storage.jsm b/common/modules/storage.jsm index 008fcedc..0e5a0b15 100644 --- a/common/modules/storage.jsm +++ b/common/modules/storage.jsm @@ -4,6 +4,9 @@ // given in the LICENSE.txt file included with this file. "use strict"; +if (this.XPCSafeJSObjectWrapper == null) + this.XPCSafeJSObjectWrapper = XPCNativeWrapper; + const myObject = Object; Components.utils.import("resource://dactyl/base.jsm"); defineModule("storage", { @@ -282,7 +285,7 @@ const File = Class("File", { return null; } } - let self = XPCNativeWrapper(file); + let self = XPCSafeJSObjectWrapper(file); self.__proto__ = File.prototype; return self; },