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
Родитель 14dba9297c
Коммит cc2c33a858
2 изменённых файлов: 15 добавлений и 0 удалений

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

@ -257,6 +257,16 @@ function populateGraphicsSection() {
])); ]));
appendChildren(graphics_tbody, trGraphics); 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) } // end if (gfxInfo)
let windows = Services.ww.getWindowEnumerator(); let windows = Services.ww.getWindowEnumerator();

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

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