Bug 702770 - Expose GfxInfo properties in about:support. r=jrmuizel

This commit is contained in:
Matt Woodrow 2011-11-18 17:00:37 +13:00
Родитель 760569d977
Коммит 46123098e0
2 изменённых файлов: 24 добавлений и 0 удалений

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

@ -180,6 +180,14 @@ function populateGraphicsSection() {
]));
}
}
function pushLiteralInfoRow(table, name, value)
{
table.push(createParentElement("tr", [
createHeader(name),
createElement("td", value),
]));
}
function errorMessageForFeature(feature) {
var errorMessage;
@ -308,6 +316,15 @@ function populateGraphicsSection() {
pushFeatureInfoRow(trGraphics, "webglRenderer", webglfeature, webglenabled, webglrenderer);
appendChildren(graphics_tbody, trGraphics);
// display registered graphics properties
let graphics_info_properties = document.getElementById("graphics-info-properties");
var info = gfxInfo.getInfo();
let trGraphicsProperties = [];
for (var property in info) {
pushLiteralInfoRow(trGraphicsProperties, property, info[property]);
}
appendChildren(graphics_info_properties, trGraphicsProperties);
// display any failures that have occurred
let graphics_failures_tbody = document.getElementById("graphics-failures-tbody");
@ -318,6 +335,8 @@ function populateGraphicsSection() {
);
appendChildren(graphics_failures_tbody, trGraphicsFailures);
} // end if (gfxInfo)
let windows = Services.ww.getWindowEnumerator();

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

@ -225,6 +225,11 @@
</tbody>
</table>
<table>
<tbody id="graphics-info-properties">
</tbody>
</table>
<table>
<tbody id="graphics-failures-tbody">
</tbody>