B2G/gecko/browser/fuel/test/browser_Application.js
// closecallback is called when the window is closed
closecallback is called when the window is closed
closecallback is called when the window is closed
function WindowOpenListener(url, opencallback, closecallback) {
  this.url = url;
  this.opencallback = opencallback;
  this.closecallback = closecallback;
  Services.wm.addListener(this);
}
function WindowOpenListener ( url , opencallback , closecallback ) { this . url = url ; this . opencallback = opencallback ; this . closecallback = closecallback ; Services . wm . addListener ( this ) ; }
closecallback is called when the window is closed
closecallback is called when the window is closed