Bug 497543 - Part 6 - Don't capture thumbnails for SVG/XML documents; r=dietrich

This commit is contained in:
Tim Taubert 2012-01-25 22:47:39 +01:00
parent 2d05f6675e
commit 642529ebd6

View File

@ -98,6 +98,13 @@ let gBrowserThumbnails = {
},
_shouldCapture: function Thumbnails_shouldCapture(aBrowser) {
let doc = aBrowser.contentDocument;
// FIXME Bug 720575 - Don't capture thumbnails for SVG or XML documents as
// that currently regresses Talos SVG tests.
if (doc instanceof SVGDocument || doc instanceof XMLDocument)
return false;
// There's no point in taking screenshot of loading pages.
if (aBrowser.docShell.busyFlags != Ci.nsIDocShell.BUSY_FLAGS_NONE)
return false;