From ed697569119c8d535ac8c640e23d1c21b49cde7d Mon Sep 17 00:00:00 2001 From: Kombu Date: Fri, 1 Jul 2016 05:02:28 +0800 Subject: [PATCH] fix(XHR.responseBlob): don't access XHR.responseBlob on old android webkit (#329) --- lib/common/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/common/utils.ts b/lib/common/utils.ts index be2bbb60f..f98b63826 100644 --- a/lib/common/utils.ts +++ b/lib/common/utils.ts @@ -260,6 +260,8 @@ export function patchClass(className) { let prop; for (prop in instance) { + // https://bugs.webkit.org/show_bug.cgi?id=44721 + if (className === 'XMLHttpRequest' && prop === 'responseBlob') continue; (function (prop) { if (typeof instance[prop] === 'function') { _global[className].prototype[prop] = function () {