Bug 868964: Port | Bug 864107 - session restore does not ensure restored windows are actually on-screen | to SeaMonkey. r=IanN