B2G/gecko/browser/components/downloads/src/DownloadsCommon.jsm
/**
   * Indicates whether the download is in a final state, either because it
   * completed successfully or because it was blocked.
   */
Indicates whether the download is in a final state, either because it
completed successfully or because it was blocked.
Indicates whether the download is in a final state either because it completed successfully or because it was blocked .
get done()
  {
    return [
      nsIDM.DOWNLOAD_FINISHED,
      nsIDM.DOWNLOAD_BLOCKED_PARENTAL,
      nsIDM.DOWNLOAD_BLOCKED_POLICY,
      nsIDM.DOWNLOAD_DIRTY,
    ].indexOf(this.state) != -1;
  }
get done ( ) { return [ nsIDM . DOWNLOAD_FINISHED , nsIDM . DOWNLOAD_BLOCKED_PARENTAL , nsIDM . DOWNLOAD_BLOCKED_POLICY , nsIDM . DOWNLOAD_DIRTY , ] . indexOf ( this . state ) != - 1 ; }
Indicates whether the download is in a final state, either because it
 completed successfully or because it was blocked.
Indicates whether the download is in a final state either because it completed successfully or because it was blocked .