From 642529ebd6a5ff42b3eb48f4315ed562c9dbb539 Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Wed, 25 Jan 2012 22:47:39 +0100 Subject: [PATCH] Bug 497543 - Part 6 - Don't capture thumbnails for SVG/XML documents; r=dietrich --- browser/base/content/browser-thumbnails.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/browser/base/content/browser-thumbnails.js b/browser/base/content/browser-thumbnails.js index de05b4ccae7..0a52e898e19 100644 --- a/browser/base/content/browser-thumbnails.js +++ b/browser/base/content/browser-thumbnails.js @@ -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;