зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f2aea44084
Коммит
3cd235964d
|
@ -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()));
|
||||
|
|
Загрузка…
Ссылка в новой задаче