B2G/gecko/toolkit/devtools/webconsole/NetworkHelper.jsm
/**
   * Gets the nsILoadContext that is associated with aRequest.
   *
   * @param nsIHttpChannel aRequest
   * @returns nsILoadContext or null
   */
Gets the nsILoadContext that is associated with aRequest.
@param nsIHttpChannel aRequest
@returns nsILoadContext or null
Gets the nsILoadContext that is associated with aRequest . @param nsIHttpChannel aRequest @returns nsILoadContext or null
function NH_getRequestLoadContext(aRequest)
  {
    try {
      return aRequest.notificationCallbacks.getInterface(Ci.nsILoadContext);
    } catch (ex) { }
    try {
      return aRequest.loadGroup.notificationCallbacks.getInterface(Ci.nsILoadContext);
    } catch (ex) { }
    return null;
  }
function NH_getRequestLoadContext ( aRequest ) { try { return aRequest . notificationCallbacks . getInterface ( Ci . nsILoadContext ) ; } catch ( ex ) { } try { return aRequest . loadGroup . notificationCallbacks . getInterface ( Ci . nsILoadContext ) ; } catch ( ex ) { } return null ; }
Gets the nsILoadContext that is associated with aRequest.
Gets the nsILoadContext that is associated with aRequest .