Bug 85955 -Don't thumbnail capture when in snapped view.r=rsilveira

This commit is contained in:
Allison Naaktgeboren 2013-04-15 10:42:20 -07:00
parent 4263aaffa7
commit 41d3eeb0c0

View File

@ -884,6 +884,13 @@ var BrowserUI = {
return false;
}
// Don't capture pages in snapped mode, this produces 2/3 black
// thumbs or stretched out ones
// Ci.nsIWinMetroUtils.snapped is inaccessible on
// desktop/nonwindows systems
if(Elements.windowState.getAttribute("viewstate") == "snapped") {
return false;
}
// There's no point in taking screenshot of loading pages.
if (aBrowser.docShell.busyFlags != Ci.nsIDocShell.BUSY_FLAGS_NONE) {
return false;