mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 85955 -Don't thumbnail capture when in snapped view.r=rsilveira
This commit is contained in:
parent
4263aaffa7
commit
41d3eeb0c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user