B2G/gecko/browser/devtools/webconsole/HUDService.jsm
/**
   * Returns the hudId that is corresponding to the hud activated for the
   * passed aContentWindow. If there is no matching hudId null is returned.
   *
   * @param nsIDOMWindow aContentWindow
   * @returns string or null
   */
Returns the hudId that is corresponding to the hud activated for the
passed aContentWindow. If there is no matching hudId null is returned.

@param nsIDOMWindow aContentWindow
@returns string or null
Returns the hudId that is corresponding to the hud activated for the passed aContentWindow . If there is no matching hudId null is returned . @param nsIDOMWindow aContentWindow @returns string or null
function HS_getHudIdByWindow(aContentWindow)
  {
    let window = this.currentContext();
    let index =
      window.gBrowser.getBrowserIndexForDocument(aContentWindow.document);
    if (index == -1) {
      return null;
    }
    let tab = window.gBrowser.tabs[index];
    let hudId = "hud_" + tab.linkedPanel;
    return hudId in this.hudReferences ? hudId : null;
  }
function HS_getHudIdByWindow ( aContentWindow ) { let window = this . currentContext ( ) ; let index = window . gBrowser . getBrowserIndexForDocument ( aContentWindow . document ) ; if ( index == - 1 ) { return null ; } let tab = window . gBrowser . tabs [ index ] ; let hudId = "hud_" + tab . linkedPanel ; return hudId in this . hudReferences ? hudId : null ; }
Returns the hudId that is corresponding to the hud activated for the
 passed aContentWindow.
Returns the hudId that is corresponding to the hud activated for the passed aContentWindow .