Commit Graph

126 Commits

Author SHA1 Message Date
Felix Fung
e337f8e76f 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
Gavin Sharp
780751e5c9 Bug 657462: don't select the first item in the download manager automatically, r=dolske
--HG--
extra : rebase_source : d84c3ce6b80048c2a0c8c5dc8fb7302cc22d8349
2011-09-30 09:51:17 -07:00
Paolo Amadini
8343d7173f Bug 653261 - Add a function to format the date and time displayed in the Download Manager. r=sdwilsh sr=mconnor 2011-07-27 13:08:24 +02:00
Ed Morley
99856dd6e9 Bug 652445 - Remove WinCE code (incl Faststart & nsSplashScreenWin) from toolkit; r=dtownsend 2011-04-29 12:38:26 +02:00
Shawn Wilsher
4172b2fb34 Bug 584316 - Fix DownloadManager usage of deprecated Storage binding APIs
r=Mardak
2011-03-31 10:19:31 -07:00
Dão Gottwald
a205009db7 Bug 615515 - Set the whole item as the dragged element. r=enn 2010-12-07 12:59:15 +01:00
Felipe Gomes
027eb6c1e4 Bug 524811 - "add glowing Firefox icon in the taskbar when downloads are completed" [r=sdwilsh ui-r=beltzner]
--HG--
extra : rebase_source : 53eb7821e75160557ed7d34e66e1fbcefa7bddd3
2010-05-01 09:55:00 -04:00
Felipe Gomes
8380405515 Bug 544356 - Users are often unaware that they have left the Download Mgr window open when exiting. r=sdwilsh 2010-04-22 14:56:15 +02:00
Siddharth Agarwal
651f2886ae Bug 474060 - Show download progress in app icon in Windows 7 taskbar. Tests by Felipe Gomes. r=sdwilsh r=mconnor r=sid, sr=vlad, ui-r=faaborg 2010-04-15 00:14:12 +02:00
Dão Gottwald
090e521290 Backed out changeset a352d0413476 2010-03-18 23:48:00 +01:00
Siddharth Agarwal
d44b186b73 Bug 474060 - Show download progress in app icon in Windows 7 taskbar, part 2. Test by Felipe Gomes <felipc@gmail.com>. r=sdwilsh
--HG--
extra : rebase_source : e0a037bda886004c681eb38c4ee4b66728c71e23
2010-03-18 19:34:30 +01:00
Phil Lacy
39196a6523 Bug 462172: Drag downloaded items from download manager to folders r=enndeakin
--HG--
extra : rebase_source : d51cbf914cf05b7aeb9d1a6b8c8bc7b90d46d26a
2010-02-07 10:44:48 -05:00
Kyle Huey
87966b78d4 Backed out changeset 43a19419ec4b 2010-01-30 09:32:47 -05:00
Phil Lacy
b5bacc4e95 Bug 462172: Drag downloaded items from download manager r=sdwilish,enndeakin 2010-01-30 08:08:37 -05:00
timeless@mozdev.org
1986c2c297 Bug 489994 - Downloads list should honor always remember helper application, r=mconnor 2009-10-26 18:39:23 -07:00
Jim Mathies
1c5c10ff35 Bug 504804 - Virus scanning prefs cleanup and smarter integration with win policy settings. r=tellrob, r=sdwilsh. 2009-08-11 12:37:38 -05:00
Robert Strong
6da73d93fc Bug 507481 - [WinCE] Check for Windows version in download manager shouldn't be done for Windows CE. r=sdwilsh 2009-08-10 19:58:54 -07:00
Dão Gottwald
2393c97c87 Bug 500978 - Download Manager treats search terms as regular expressions. r=sdwilsh 2009-06-28 18:03:01 +02:00
Neil Deakin
2737a14b5e Bug 456106, use new drag and drop api in browser and toolkit, r=mano 2009-06-20 20:04:07 -04:00
Ehsan Akhgari
e410f319d6 Bug 464800 - Download manager title window is not cleared when switching to Private Browsing; r=sdwilsh 2009-03-19 21:12:27 +03:30
Ehsan Akhgari
7d88172665 Backed out changeset 69322c1764ff (bug 464800) due to test failures on Mac 2009-03-12 13:37:40 +03:30
Ehsan Akhgari
c768114b78 Bug 464800 - Download manager title window is not cleared when switching to Private Browsing; r=sdwilsh 2009-03-12 12:28:17 +03:30
Ehsan Akhgari
4cbd3dd215 Bug 463885 - Entering the Private Browsing mode may not always empty the download manager list; r=sdwilsh, a=blocking1.9.1+ 2008-11-12 23:43:12 +03:30
Shawn Wilsher
88f4a312eb Bug 462964 - nsIDownloadManager should have removeDownloadsByTimeframe
r=mconnor
2008-11-05 18:39:24 -05:00
Ehsan Akhgari
0cd9741967 Bug 248970 - Private Browsing mode (global toggle for saving/caching everything) [downloadmgr part]; r=sdwilsh 2008-11-04 02:52:21 +03:30
Jim Mathies
4ba1e76c42 Bug 426544 - Disable browser.download.manager.alertOnEXEOpen and set internet zone bit on all downloaded files; v3; r=sdwilsh 2008-10-29 05:53:30 +01:00
Dão Gottwald
0055cc6179 Bug 405892 – Finish polish of the download manager search field. r=sdwilsh 2008-08-05 23:33:41 +02:00
Dão Gottwald
788833b26d Bug 437646
make use of :nth-child in the download list, remove stripeifyList()
r=sdwilsh
2008-06-11 10:11:14 -04:00
Nochum Sossonko
91304d0cf2 Bug 429247
Double-clicking on empty white space in the Download Manager activates the currently selected item
r=sdwilsh
2008-06-04 11:05:09 -04:00
edward.lee@engineering.uiuc.edu
33ab985b80 Bug 431188 - Clear list active / inactive state not working properly. r=sdwilsh, a1.9=beltzner 2008-05-06 16:25:36 -07:00
edward.lee@engineering.uiuc.edu
88e1f673ec Bug 430486 - Clear List button doesn't disable when it should. r=sdwilsh, r=mconnor, ui-r=mconnor, a1.9=mconnor. Fixes Bug 430597 - New clearListButton does not accomodate larger fonts 2008-04-24 22:59:31 -07:00
edward.lee@engineering.uiuc.edu
bc05f2d225 Bug 400495 - Add "Clear List" button to download manager. r=mconnor, ui-r=beltzner, ui-r=mconnor, b-ff3=beltzner, a1.9=mconnor 2008-04-22 20:57:05 -07:00
edward.lee@engineering.uiuc.edu
be272ae0e4 Bug 429614 - add select all keyboard shortcut and context menu item to download manager. p=beltzner, r=sdwilsh, r=Mardak, ui-r=mconnor, a1.9=mconnor 2008-04-19 00:36:39 -07:00
edward.lee@engineering.uiuc.edu
224482cf75 Bug 429144 - If downloaded file is removed, but saved dir still exists, then "Open Containing Folder" menu item should be disabled. r=sdwilsh, a1.9=beltzner 2008-04-15 22:28:59 -07:00
edward.lee@engineering.uiuc.edu
4c5b079d80 Bug 426983 - Make the download option Clear List always available. r=sdwilsh, a1.9=beltzner 2008-04-12 12:42:03 -07:00
edward.lee@engineering.uiuc.edu
ddc6189578 Bug 228842 - Allow multiple selections in Download Manager. r=sdwilsh, a1.9=beltzner 2008-04-08 22:33:39 -07:00
edward.lee@engineering.uiuc.edu
f32db9996f Bug 425753 - Send notification when download manager finishes building the list. r=sdwilsh, a1.9=beltzner 2008-04-05 21:26:18 -07:00
reed@reedloden.com
aa19a372c7 Bug 424547 - "Fix strings so they are more descriptive from bug 416683" [p=jmathies@mozilla.com (Jim Mathies) r=sdwilsh ui-r+a1.9=beltzner] 2008-04-04 00:08:24 -07:00
sdwilsh@shawnwilsher.com
f6ab64ca11 Bug 397935 - Download Manager ("Downloads") window doesn't stay open when clicking on download-complete alert notification with auto-close pref ("close when done"). r=Mardak, sr=mconnor 2008-04-02 20:05:22 -07:00
edward.lee@engineering.uiuc.edu
06f1bb8e8f 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
edward.lee@engineering.uiuc.edu
2f260f9c63 Bug 414850 - "Clear List" in download manager should only remove visible downloads. r=sdwilsh, a1.9=beltzner 2008-03-18 10:59:27 -07:00
edward.lee@engineering.uiuc.edu
7b954899d4 Bug 419403 - Pimp My Download Manager Search! (multi word, match any text). r=sdwilsh, a1.9=beltzner 2008-02-26 09:52:17 -08:00
edward.lee@engineering.uiuc.edu
adb4a9fc8f Bug 416303 - Show default list, clear search, focus list when hitting escape from the search box. r=sdwilsh, a1.9=beltzner 2008-02-21 12:49:56 -08:00
sdwilsh@shawnwilsher.com
9e75050e9c Bug 402452 - Some download manager preferences should be assumed, not required. r=Mardak, r=mfinkle, a=schrep 2008-02-08 14:22:35 -08:00
reed@reedloden.com
ea927e60f2 Bug 392890 - "Provide a text label for the Search edit in Download Manager" [p=dao@mozilla.com (Dão Gottwald) r=Mardak a=blocking-firefox3+] 2008-02-06 21:29:30 -08:00
edward.lee@engineering.uiuc.edu
10b22b8430 Bustage fix. Bug 405720 - Strange message with download manager for file with unknown filesize. rs=sdwilsh 2008-01-26 23:53:31 -08:00
sdwilsh@shawnwilsher.com
3e117c89f2 Bug 413985 - Space key for pause/resume doesn't work (never did). Patch by Simon Bünzli <zeniko@gmail.com>. r=sdwilsh, a=beltzner 2008-01-26 19:28:32 -08:00
edward.lee@engineering.uiuc.edu
8e7c2034ba Bug 405720 - Strange message with download manager for file with unknown filesize. r=sdwilsh, a1.9=schrep, b-ff3=mconnor 2008-01-26 13:02:32 -08:00
edward.lee@engineering.uiuc.edu
9d19fe677e Bug 394516 - Figure out a remaining-time rounding scheme for minutes -> hours/days. r=sdwilsh, b-ff3=beltzner 2008-01-22 18:15:08 -08:00
sdwilsh@shawnwilsher.com
81853605dd Bug 410289 - Do not allow the pausing of downloads that cannot actually be resumed. r=Mardak 2008-01-21 19:43:02 -08:00