зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset e0cc363043ad (bug 1240959) for dt5 failures. r=backout on a CLOSED TREE
This commit is contained in:
Родитель
229ccdd716
Коммит
b40c51d009
|
@ -2223,14 +2223,7 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
|
|||
if (!aItemsArray.length) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
let result = 0;
|
||||
aItemsArray.forEach(item => {
|
||||
let size = item.attachment.contentSize;
|
||||
result += (typeof size == "number") ? size : 0;
|
||||
});
|
||||
|
||||
return result;
|
||||
return aItemsArray.reduce((prev, curr) => prev + curr.attachment.contentSize || 0, 0);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -388,13 +388,7 @@ NetworkResponseListener.prototype = {
|
|||
|
||||
if (!response.mimeType || !NetworkHelper.isTextMimeType(response.mimeType)) {
|
||||
response.encoding = "base64";
|
||||
|
||||
try {
|
||||
response.text = unescape(encodeURIComponent(response.text));
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
|
||||
response.text = btoa(response.text);
|
||||
}
|
||||
|
||||
if (response.mimeType && this.request.contentCharset) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче