Bug 1536175 - Report whether Headless or not in Telemetry Environment r=janerik

If Firefox is in Headless Mode we expect it to behave rather differently. For
example, I imagine gpu perf metrics will be less than representative. We should
annotate Telemetry pings with whether or not we're operating in headless mode.

Differential Revision: https://phabricator.services.mozilla.com/D26970

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Chris H-C 2019-04-22 20:35:05 +00:00
Родитель 1aa19f42ad
Коммит 76ed6c6d7c
3 изменённых файлов: 3 добавлений и 0 удалений

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

@ -1763,6 +1763,7 @@ EnvironmentCache.prototype = {
D2DEnabled: getGfxField("D2DEnabled", null),
DWriteEnabled: getGfxField("DWriteEnabled", null),
ContentBackend: getGfxField("ContentBackend", null),
Headless: getGfxField("isHeadless", null),
// The following line is disabled due to main thread jank and will be enabled
// again as part of bug 1154500.
// DWriteVersion: getGfxField("DWriteVersion", null),

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

@ -154,6 +154,7 @@ Structure:
gfx: {
D2DEnabled: <bool>, // null on failure
DWriteEnabled: <bool>, // null on failure
Headless: <bool>, // null on failure
//DWriteVersion: <string>, // temporarily removed, pending bug 1154500
adapters: [
{

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

@ -611,6 +611,7 @@ function checkSystemSection(data) {
let gfxData = data.system.gfx;
Assert.ok("D2DEnabled" in gfxData);
Assert.ok("DWriteEnabled" in gfxData);
Assert.ok("Headless" in gfxData);
// DWriteVersion is disabled due to main thread jank and will be enabled
// again as part of bug 1154500.
// Assert.ok("DWriteVersion" in gfxData);