Bug 1647225 - Change the string exposed via gfxInfo. r=jrmuizel

This includes things like about:support, gfxCriticalNote, probably telemetry
environment stuff.

Differential Revision: https://phabricator.services.mozilla.com/D80451
This commit is contained in:
Kartikaya Gupta 2020-06-23 15:14:24 +00:00
Родитель d61fdfeed8
Коммит ed3e0d6f72
3 изменённых файлов: 3 добавлений и 3 удалений

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

@ -59,7 +59,7 @@ const char* FeatureStatusToString(FeatureStatus aStatus) {
case FeatureStatus::Denied:
return "denied";
case FeatureStatus::Blocklisted:
return "blacklisted";
return "blocklisted";
case FeatureStatus::OptIn:
return "opt-in";
case FeatureStatus::Failed:

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

@ -266,7 +266,7 @@ interface nsIGfxInfo : nsISupports
// // "unused" - This feature has not been requested.
// // "unavailable" - OS version or restriction prevents use.
// // "blocked" - An internal condition (such as safe mode) prevents use.
// // "blacklisted" - Blocked due to a blacklist restriction.
// // "blocklisted" - Blocked due to a blocklist restriction.
// // "denied" - Blocked due to allowlist restrictions.
// // "disabled" - User explicitly disabled this default feature.
// // "failed" - Feature failed to initialize.

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

@ -2031,7 +2031,7 @@ void GfxInfo::DescribeFeatures(JSContext* aCx, JS::Handle<JSObject*> aObj) {
}
val = JS::BooleanValue(blocklisted);
JS_SetProperty(aCx, obj, "blacklisted", val);
JS_SetProperty(aCx, obj, "blocklisted", val);
}
gfx::FeatureState& d2d = gfxConfig::GetFeature(Feature::DIRECT2D);