gecko-dev/toolkit/mozapps/downloads/content
Felix Fung 42b50d5d59 Bug 397424 - Downloads cause high CPU usage. r=gavin
This addresses an issue with the download manager that can cause high CPU usage
when there is an active download.  The underlying issue is the frequency of
updates that the download progress listener receives.
Things changed:
- reduced the number of null checks in DownloadUtils.jsm's getDownloadStatus
  function by one (down to two from three).
- obtain and format strings from the nsIStringBundle.  This removes all the
  calls to String.replace in DownloadUtils.jsm.
- modifies the download manager back-end to update the percentComplete and size
  property on downloads before dispatching a state changed notification for
  downloads entering the DOWNLOAD_DOWNLOADING state.  This saves us two calls to
  setAttribute on downloads that we know how big they are, and saves us the same
  two calls to setAttribute for indeterminate downloads as well as not
  dispatching a ValueChange event on the progressmeter every time
  onProgressChange is called on the DownloadProgressListener.
- has nsDownload implement nsIClassInfo so we do not need to QueryInterface when
  going through the list of active downloads in both the download manager's UI
  and the browser's taskbar UI.
2011-11-03 15:25:55 -07:00
..
DownloadProgressListener.js Bug 397424 - Downloads cause high CPU usage. r=gavin 2011-11-03 15:25:55 -07:00
download.xml Bug 416683 - binary downloads are deleted on completion when "Launch applications and unsafe files" is disabled. p=jmathies, r=Mardak, r=robarnold, sr=bsmedberg, a1.9b5=beltzner, b-ff3=beltzner 2008-03-21 17:23:45 -07:00
downloads.css Bug 416683 - binary downloads are deleted on completion when "Launch applications and unsafe files" is disabled. p=jmathies, r=Mardak, r=robarnold, sr=bsmedberg, a1.9b5=beltzner, b-ff3=beltzner 2008-03-21 17:23:45 -07:00
downloads.js Bug 397424 - Downloads cause high CPU usage. r=gavin 2011-11-03 15:25:55 -07:00
downloads.xul Bug 547224 - Remove the custom emptyText implementation, implement textbox.placeholder using the input field's native placeholder facility. r=enn 2010-03-04 08:13:27 +01:00
helperApps.js Bug 473236 - Remove executable bit from files that don't need it. (Only changes file mode -- no code changes.) r=bsmedberg 2009-01-21 22:55:08 -08:00
unknownContentType.xul Bug 517819, inherit noinitialfocus into textbox inputs, so that uthe nknown content dialog can use it, prevents focus from appearing on the file type field, r=neil 2009-10-16 10:32:02 -04:00