bug 1062136 - getScreenshot should check for frontWindow. r=alive