Bug 617028. Expose graphics failures in about:support. r=ehsan,a=blocking

Adds a list of the graphics failures below the graphics section.
This commit is contained in:
Jeff Muizelaar 2011-02-07 16:11:57 -05:00
parent 9dabf6ed31
commit 1b6388a8c4
2 changed files with 15 additions and 0 deletions

View File

@ -257,6 +257,16 @@ function populateGraphicsSection() {
]));
appendChildren(graphics_tbody, trGraphics);
// display any failures that have occurred
let graphics_failures_tbody = document.getElementById("graphics-failures-tbody");
let trGraphicsFailures = gfxInfo.getFailures().map(function (value)
createParentElement("tr", [
createElement("td", value)
])
);
appendChildren(graphics_failures_tbody, trGraphicsFailures);
} // end if (gfxInfo)
let windows = Services.ww.getWindowEnumerator();

View File

@ -203,6 +203,11 @@
<tbody id="graphics-tbody">
</tbody>
</table>
<table>
<tbody id="graphics-failures-tbody">
</tbody>
</table>
</div>