From 8f4ec669d0efa1cf192165626b6d45548531aba8 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 9 Jul 2016 16:37:05 +0200 Subject: [PATCH] Remove the obsolete `MozBlobBuilder` fallback from the `createBlob` utility function `MozBlobBuilder` has been obsolete since Firefox 14, so there's no reason to keep this code around anymore. --- src/shared/util.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/shared/util.js b/src/shared/util.js index 2904846cd..70119b68f 100644 --- a/src/shared/util.js +++ b/src/shared/util.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/* globals MozBlobBuilder, URL, global */ +/* globals URL, global */ 'use strict'; @@ -1506,10 +1506,7 @@ var createBlob = function createBlob(data, contentType) { if (typeof Blob !== 'undefined') { return new Blob([data], { type: contentType }); } - // Blob builder is deprecated in FF14 and removed in FF18. - var bb = new MozBlobBuilder(); - bb.append(data); - return bb.getBlob(contentType); + warn('The "Blob" constructor is not supported.'); }; var createObjectURL = (function createObjectURLClosure() {