Bug 1640412 - Include failure id for status=unavailable/blocked too. r=aosmond

We get a fair amount of this on modern hardware.
It would be good to know why.

Differential Revision: https://phabricator.services.mozilla.com/D76605
This commit is contained in:
Jeff Muizelaar 2020-05-25 12:42:12 +00:00
Родитель f2aea44084
Коммит 3cd235964d
1 изменённых файлов: 6 добавлений и 3 удалений

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

@ -1639,12 +1639,15 @@ bool GfxInfoBase::InitFeatureObject(JSContext* aCx,
}
nsCString status;
if (aFeatureState.GetValue() == FeatureStatus::Blacklisted) {
auto value = aFeatureState.GetValue();
if (value == FeatureStatus::Blacklisted ||
value == FeatureStatus::Unavailable ||
value == FeatureStatus::Blocked) {
status.AppendPrintf("%s:%s",
FeatureStatusToString(aFeatureState.GetValue()),
FeatureStatusToString(value),
aFeatureState.GetFailureId().get());
} else {
status.Append(FeatureStatusToString(aFeatureState.GetValue()));
status.Append(FeatureStatusToString(value));
}
JS::Rooted<JSString*> str(aCx, JS_NewStringCopyZ(aCx, status.get()));