bin/XULRunner21_0/chrome/toolkit/content/global/devtools/dbg-browser-actors.js
/**
   * Does the actual work of attching to a tab.
   */
Does the actual work of attching to a tab.
Does the actual work of attching to a tab .
function BTA_attach() {
    if (this._attached) {
      return;
    }
    dbg_assert(!this._tabPool, "Shouldn't have a tab pool if we weren't attached.");
    this._tabPool = new ActorPool(this.conn);
    this.conn.addActorPool(this._tabPool);
    this._pushContext();
    this.browser.addEventListener("DOMWindowCreated", this._onWindowCreated, true);
    this.browser.addEventListener("pageshow", this._onWindowCreated, true);
    if (this._tabbrowser) {
      this._progressListener = new DebuggerProgressListener(this);
    }
    this._attached = true;
  }
function BTA_attach ( ) { if ( this . _attached ) { return ; } dbg_assert ( ! this . _tabPool , "Shouldn't have a tab pool if we weren't attached." ) ; this . _tabPool = new ActorPool ( this . conn ) ; this . conn . addActorPool ( this . _tabPool ) ; this . _pushContext ( ) ; this . browser . addEventListener ( "DOMWindowCreated" , this . _onWindowCreated , true ) ; this . browser . addEventListener ( "pageshow" , this . _onWindowCreated , true ) ; if ( this . _tabbrowser ) { this . _progressListener = new DebuggerProgressListener ( this ) ; } this . _attached = true ; }
Does the actual work of attching to a tab.
Does the actual work of attching to a tab .
// Create a pool for tab-lifetime actors. // ... and a pool for context-lifetime actors. // Watch for globals being created in this tab.