Bug 1625474 - Always show gfx decision log in about:support, even if just the default. r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D75095
This commit is contained in:
Andrew Osmond 2020-05-13 17:05:39 +00:00
Родитель 6e8ef040d3
Коммит 0e6a86ab1c
1 изменённых файлов: 6 добавлений и 16 удалений

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

@ -679,25 +679,15 @@ var snapshotFormatters = {
let featureLog = data.featureLog;
delete data.featureLog;
let features = [];
if (featureLog.features.length) {
for (let feature of featureLog.features) {
// Only add interesting decisions - ones that were not automatic based on
// all.js/StaticPrefs defaults.
if (feature.log.length > 1 || feature.log[0].status != "available") {
features.push(feature);
}
}
if (features.length) {
for (let feature of features) {
let trs = [];
for (let entry of feature.log) {
if (entry.type == "default" && entry.status == "available") {
continue;
}
let contents;
if (entry.message.length && entry.message[0] == "#") {
if (!entry.hasOwnProperty("message")) {
// This is a default entry.
contents = entry.status + " by " + entry.type;
} else if (entry.message.length && entry.message[0] == "#") {
// This is a failure ID. See nsIGfxInfo.idl.
let m = /#BLOCKLIST_FEATURE_FAILURE_BUG_(\d+)/.exec(entry.message);
if (m) {