Bug 898744 - Make browser_394759_basic.js wait for tab invalidation before closing the window; r=yoric