B2G/gecko/toolkit/devtools/debugger/server/dbg-browser-actors.js
/**
   * Does the actual work of detaching from a tab.
   */
Does the actual work of detaching from a tab.
Does the actual work of detaching from a tab .
function BTA_detach() {
    if (!this.attached) {
      return;
    }
    this.browser.removeEventListener("DOMWindowCreated", this._onWindowCreated, true);
    this.browser.removeEventListener("pageshow", this._onWindowCreated, true);
    this._popContext();
    this.conn.removeActorPool(this._tabPool);
    this._tabPool = null;
    if (this._tabActorPool) {
      this.conn.removeActorPool(this._tabActorPool);
      this._tabActorPool = null;
    }
    this._attached = false;
  }
function BTA_detach ( ) { if ( ! this . attached ) { return ; } this . browser . removeEventListener ( "DOMWindowCreated" , this . _onWindowCreated , true ) ; this . browser . removeEventListener ( "pageshow" , this . _onWindowCreated , true ) ; this . _popContext ( ) ; this . conn . removeActorPool ( this . _tabPool ) ; this . _tabPool = null ; if ( this . _tabActorPool ) { this . conn . removeActorPool ( this . _tabActorPool ) ; this . _tabActorPool = null ; } this . _attached = false ; }
Does the actual work of detaching from a tab.
Does the actual work of detaching from a tab .
// Shut down actors that belong to this tab's pool.