B2G/gecko/browser/components/sessionstore/test/browser_589246.js
// which should actually trigger the bug.
which should actually trigger the bug.
which should actually trigger the bug .
function onWindowUnloaded() {
  info("test #" + testNum + ": onWindowClosed");
  ok(gotLastWindowClosedTopic, "test #" + testNum + ": browser-lastwindow-close-granted was notified prior");
  let previousClosedWindowData = ss.getClosedWindowData();
  let newWin = openDialog(location, "_blank", "chrome,all,dialog=no", "about:mozilla");
  newWin.addEventListener("load", function(aEvent) {
    newWin.removeEventListener("load", arguments.callee, false);
    newWin.gBrowser.selectedBrowser.addEventListener("load", function () {
      newWin.gBrowser.selectedBrowser.removeEventListener("load", arguments.callee, true);
      afterTestCallback(previousClosedWindowData, ss.getClosedWindowData());
      afterTestCleanup(newWin);
    }, true);
  }, false);
}
function onWindowUnloaded ( ) { info ( "test #" + testNum + ": onWindowClosed" ) ; ok ( gotLastWindowClosedTopic , "test #" + testNum + ": browser-lastwindow-close-granted was notified prior" ) ; let previousClosedWindowData = ss . getClosedWindowData ( ) ; let newWin = openDialog ( location , "_blank" , "chrome,all,dialog=no" , "about:mozilla" ) ; newWin . addEventListener ( "load" , function ( aEvent ) { newWin . removeEventListener ( "load" , arguments . callee , false ) ; newWin . gBrowser . selectedBrowser . addEventListener ( "load" , function ( ) { newWin . gBrowser . selectedBrowser . removeEventListener ( "load" , arguments . callee , true ) ; afterTestCallback ( previousClosedWindowData , ss . getClosedWindowData ( ) ) ; afterTestCleanup ( newWin ) ; } , true ) ; } , false ) ; }
which should actually trigger the bug.
which should actually trigger the bug .
// Now we want to open a new window // Good enough for checking the state