From 0b26b5b08c3cd03b70a668695297aa253ce67e9e Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Thu, 11 Jan 2018 13:52:16 +0100 Subject: [PATCH 1/6] fix rollup error --- Blob.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Blob.js b/Blob.js index 6c3a255..6f26453 100644 --- a/Blob.js +++ b/Blob.js @@ -208,4 +208,4 @@ return object.__proto__; }; view.Blob.prototype = getPrototypeOf(new view.Blob()); -}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || this.content || this)); +}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || typeof global !== "undefined" && global || Function('return this.content')() || Function('return this')())); From 5bacda314330ef22889c4dd62fcedb6fc0112123 Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Fri, 12 Jan 2018 09:34:13 +0100 Subject: [PATCH 2/6] change as requested --- Blob.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Blob.js b/Blob.js index 6f26453..509e139 100644 --- a/Blob.js +++ b/Blob.js @@ -208,4 +208,4 @@ return object.__proto__; }; view.Blob.prototype = getPrototypeOf(new view.Blob()); -}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || typeof global !== "undefined" && global || Function('return this.content')() || Function('return this')())); +}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || typeof global !== "undefined" && global); From 8e2671b077892d1f4680b5a31a4bec851e5b8441 Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Fri, 12 Jan 2018 09:37:16 +0100 Subject: [PATCH 3/6] Update Blob.js --- Blob.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Blob.js b/Blob.js index 509e139..22fa5fb 100644 --- a/Blob.js +++ b/Blob.js @@ -208,4 +208,4 @@ 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)); From 8dc8359cc98033535534cfa08d9865dcf5eb6fe8 Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Fri, 12 Jan 2018 13:13:49 +0100 Subject: [PATCH 4/6] Update Blob.js --- Blob.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Blob.js b/Blob.js index 22fa5fb..b9648d3 100644 --- a/Blob.js +++ b/Blob.js @@ -1,6 +1,6 @@ /* Blob.js * A Blob implementation. - * 2014-07-24 + * 2018-01-12 * * By Eli Grey, http://eligrey.com * By Devin Samarin, https://github.com/dsamarin From 6b0a8a55fb649b0ede9d0d1e4c16d947fd91ff33 Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Fri, 12 Jan 2018 13:16:18 +0100 Subject: [PATCH 5/6] 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 From a501740f9d416316e4ee6b3e9688ace74f329bf4 Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Fri, 12 Jan 2018 13:45:32 +0100 Subject: [PATCH 6/6] Update Blob.js --- Blob.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Blob.js b/Blob.js index 7dc0313..f79055b 100644 --- a/Blob.js +++ b/Blob.js @@ -212,9 +212,5 @@ typeof self !== "undefined" && self || typeof window !== "undefined" && window || typeof global !== "undefined" && global - || Function('return this.content')() - || Function('return this')() + || this )); -// `self` is undefined in Firefox for Android content script context -// while `this` is nsIContentFrameMessageManager -// with an attribute `content` that corresponds to the window