From 6b0a8a55fb649b0ede9d0d1e4c16d947fd91ff33 Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Fri, 12 Jan 2018 13:16:18 +0100 Subject: [PATCH] Update Blob.js --- Blob.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Blob.js b/Blob.js index b9648d3..7dc0313 100644 --- a/Blob.js +++ b/Blob.js @@ -208,4 +208,13 @@ return object.__proto__; }; view.Blob.prototype = getPrototypeOf(new view.Blob()); -}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || typeof global !== "undefined" && global)); +}( + typeof self !== "undefined" && self + || typeof window !== "undefined" && window + || typeof global !== "undefined" && global + || Function('return this.content')() + || Function('return this')() +)); +// `self` is undefined in Firefox for Android content script context +// while `this` is nsIContentFrameMessageManager +// with an attribute `content` that corresponds to the window