function whenNewWindowLoaded(aOptions, aCallback) {
  let win = OpenBrowserWindow(aOptions);
  win.addEventListener("load", function onLoad() {
    win.removeEventListener("load", onLoad, false);
    aCallback(win);
  }, false);
}
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .
function whenNewWindowLoaded(aOptions, aCallback) {
  let win = OpenBrowserWindow(aOptions);
  win.addEventListener("load", function onLoad() {
    win.removeEventListener("load", onLoad, false);
    aCallback(win);
  }, false);
}
function whenNewWindowLoaded ( aOptions , aCallback ) { let win = OpenBrowserWindow ( aOptions ) ; win . addEventListener ( "load" , function onLoad ( ) { win . removeEventListener ( "load" , onLoad , false ) ; aCallback ( win ) ; } , false ) ; }
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .