B2G/gecko/browser/devtools/webconsole/HUDService.jsm
/**
   * Called whenever a browser window closes. Cleans up any consoles still
   * around.
   *
   * @param nsIDOMEvent aEvent
   *        The dispatched event.
   * @returns void
   */
Called whenever a browser window closes. Cleans up any consoles still
around.

@param nsIDOMEvent aEvent
The dispatched event.
@returns void
Called whenever a browser window closes . Cleans up any consoles still around . @param nsIDOMEvent aEvent The dispatched event . @returns void
function HS_onWindowUnload(aEvent)
  {
    let window = aEvent.target.defaultView;
    window.removeEventListener("unload", this.onWindowUnload, false);
    let gBrowser = window.gBrowser;
    let tabContainer = gBrowser.tabContainer;
    tabContainer.removeEventListener("TabClose", this.onTabClose, false);
    tabContainer.removeEventListener("TabSelect", this.onTabSelect, false);
    let tab = tabContainer.firstChild;
    while (tab != null) {
      this.deactivateHUDForContext(tab, false);
      tab = tab.nextSibling;
    }
  }
function HS_onWindowUnload ( aEvent ) { let window = aEvent . target . defaultView ; window . removeEventListener ( "unload" , this . onWindowUnload , false ) ; let gBrowser = window . gBrowser ; let tabContainer = gBrowser . tabContainer ; tabContainer . removeEventListener ( "TabClose" , this . onTabClose , false ) ; tabContainer . removeEventListener ( "TabSelect" , this . onTabSelect , false ) ; let tab = tabContainer . firstChild ; while ( tab != null ) { this . deactivateHUDForContext ( tab , false ) ; tab = tab . nextSibling ; } }
Called whenever a browser window closes.
Called whenever a browser window closes .