B2G/gecko/services/common/rest.js
/**
   * Abort the request based on a timeout.
   */
Abort the request based on a timeout.
Abort the request based on a timeout .
function abortTimeout() {
    this.abort();
    let error = Components.Exception("Aborting due to channel inactivity.",
                                     Cr.NS_ERROR_NET_TIMEOUT);
    if (!this.onComplete) {
      this._log.error("Unexpected error: onComplete not defined in " +
                      "abortTimeout.")
      return;
    }
    this.onComplete(error);
  }
function abortTimeout ( ) { this . abort ( ) ; let error = Components . Exception ( "Aborting due to channel inactivity." , Cr . NS_ERROR_NET_TIMEOUT ) ; if ( ! this . onComplete ) { this . _log . error ( "Unexpected error: onComplete not defined in " + "abortTimeout." ) return ; } this . onComplete ( error ) ; }
Abort the request based on a timeout.
Abort the request based on a timeout .