Backed out changeset 7a8413473cd7 (bug 1361473) for failing own test. r=backout

This commit is contained in:
Sebastian Hengst 2017-05-11 14:15:01 +02:00
Родитель 38f4b16e9a
Коммит 91464e0328
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -43,7 +43,6 @@ const FILTER_FLAGS = [
"set-cookie-value",
"mime-type",
"larger-than",
"transferred-larger-than",
"is",
"has-response-header",
"regexp",
@ -99,7 +98,6 @@ function processFlagFilter(type, value) {
case "size":
case "transferred":
case "larger-than":
case "transferred-larger-than":
let multiplier = 1;
if (value.endsWith("k")) {
multiplier = 1024;
@ -167,13 +165,6 @@ function isFlagFilterMatch(item, { type, value, negative }) {
case "larger-than":
match = item.contentSize > value;
break;
case "transferred-larger-than":
if (item.fromCache) {
match = false;
} else {
match = item.transferredSize > value;
}
break;
case "mime-type":
match = item.mimeType.includes(value);
break;