function Downloader_onProgress(request, context, progress,
                                             maxProgress) {
    LOG("Downloader:onProgress - progress: " + progress + "/" + maxProgress);

    var listeners = this._listeners.concat();
    var listenerCount = listeners.length;
    for (var i = 0; i < listenerCount; ++i) {
      var listener = listeners[i];
      if (listener instanceof Ci.nsIProgressEventSink)
        listener.onProgress(request, context, progress, maxProgress);
    }
  }
/**
   * When new data has been downloaded
   * @param   request
   *          The nsIRequest object for the transfer
   * @param   context
   *          Additional data
   * @param   progress
   *          The current number of bytes transferred
   * @param   maxProgress
   *          The total number of bytes that must be transferred
   */
When new data has been downloaded
@param   request
The nsIRequest object for the transfer
@param   context
Additional data
@param   progress
The current number of bytes transferred
@param   maxProgress
The total number of bytes that must be transferred
When new data has been downloaded @param request The nsIRequest object for the transfer @param context Additional data @param progress The current number of bytes transferred @param maxProgress The total number of bytes that must be transferred
function Downloader_onProgress(request, context, progress,
                                             maxProgress) {
    LOG("Downloader:onProgress - progress: " + progress + "/" + maxProgress);
    var listeners = this._listeners.concat();
    var listenerCount = listeners.length;
    for (var i = 0; i < listenerCount; ++i) {
      var listener = listeners[i];
      if (listener instanceof Ci.nsIProgressEventSink)
        listener.onProgress(request, context, progress, maxProgress);
    }
  }
function Downloader_onProgress ( request , context , progress , maxProgress ) { LOG ( "Downloader:onProgress - progress: " + progress + "/" + maxProgress ) ; var listeners = this . _listeners . concat ( ) ; var listenerCount = listeners . length ; for ( var i = 0 ; i < listenerCount ; ++ i ) { var listener = listeners [ i ] ; if ( listener instanceof Ci . nsIProgressEventSink ) listener . onProgress ( request , context , progress , maxProgress ) ; } }
When new data has been downloaded
 @param   request
          The nsIRequest object for the transfer
 @param   context
          Additional data
 @param   progress
          The current number of bytes transferred
 @param   maxProgress
          The total number of bytes that must be transferred
When new data has been downloaded @param request The nsIRequest object for the transfer @param context Additional data @param progress The current number of bytes transferred @param maxProgress The total number of bytes that must be transferred