B2G/gecko/toolkit/devtools/webconsole/NetworkHelper.jsm
/**
   * Gets the nsIDOMWindow that is associated with aRequest.
   *
   * @param nsIHttpChannel aRequest
   * @returns nsIDOMWindow or null
   */
Gets the nsIDOMWindow that is associated with aRequest.
@param nsIHttpChannel aRequest
@returns nsIDOMWindow or null
Gets the nsIDOMWindow that is associated with aRequest . @param nsIHttpChannel aRequest @returns nsIDOMWindow or null
function NH_getWindowForRequest(aRequest)
  {
    try {
      return this.getRequestLoadContext(aRequest).associatedWindow;
    } catch (ex) { }
    return null;
  }
function NH_getWindowForRequest ( aRequest ) { try { return this . getRequestLoadContext ( aRequest ) . associatedWindow ; } catch ( ex ) { } return null ; }
Gets the nsIDOMWindow that is associated with aRequest.
Gets the nsIDOMWindow that is associated with aRequest .