Commit Graph

195 Commits

Author SHA1 Message Date
Shawn Wilsher
239b9d97e6 Bug 437415 - Entering offline mode should pause active downloads
This has the download manager listen to the online and offline observer topics
sent out by necko.  Downloads will now pause when going offline, and resume when
going back online, just like we do with sleep and wakeup notifications.
r=gavin

--HG--
rename : toolkit/components/downloads/test/unit/test_sleep_wake.js => toolkit/components/downloads/test/unit/test_offline_support.js
2008-07-08 17:25:48 -04:00
Shawn Wilsher
4c5bb7b667 Bug 439495 - remove references of "browser.download.manager.useWindow"
This removes the use of the preference browser.download.manager.useWindow, which
was redundant because we do not have any download manager UI that isn't in a
window, and the preference browser.download.manager.showWhenStarting controls
the appearance of the downloads window.  Additionally, this removes the preference browser.download.manager.openDelay which was made obsolete long ago but not
removed from firefox.js.
r=gavin
2008-06-26 11:51:38 -04:00
Shawn Wilsher
8e91e95c12 Backed out changeset a26c86b184f7 due to Linux orange. It is not clear why this worked locally, and failed on tinderbox. 2008-06-04 13:10:31 -04:00
sdwilsh@shawnwilsher.com
98623ef402 Bug 437063
nsIDownloadManagerUI::visible isn't accurate
r=Mardak
2008-06-04 11:22:45 -04:00
gavin@gavinsharp.com
91b4155207 Bug 430566: Saving web page/some downloads fail with "blocked by your Security Zone Policy", patch by Jim Mathies <jmathies@mozilla.com>, r=robarnold, r=sdwilsh, a=beltzner 2008-05-01 14:06:43 -07:00
edward.lee@engineering.uiuc.edu
aeffa9eb25 Bug 431346 - File -> Import -> Browsing History crash Firefox [@ nsCOMPtr.h:931]. r=sdwilsh, b-ff3=beltzner, a1.9=shaver. Fixes Bug 431597 - Firefox crash after deleting History Item via Places Library [@ nsNavHistoryResult.h:429] 2008-05-01 07:55:04 -07:00
edward.lee@engineering.uiuc.edu
a993453306 Bug 251337 - Download manager history should have "aging" option, just like the browser history. r=sdwilsh, r=mano, r=bsmedberg, a1.9=damons 2008-04-22 16:37:00 -07:00
dholbert@cs.stanford.edu
cd91e7dfe2 Backing out mardak's Bug 251337 checkin to fix Thunderbird & Sunbird tinderbox bustage. 2008-04-21 16:00:59 -07:00
edward.lee@engineering.uiuc.edu
a5ee1dc568 Bug 251337 - Download manager history should have "aging" option, just like the browser history. r=sdwilsh, r=mano, a1.9=damons 2008-04-21 14:48:55 -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
reed@reedloden.com
ba5ea62a62 Bug 424608 - "NS_GetInnermostURI result requires a null check in download scanner" [p=jmathies@mozilla.com (Jim Mathies) r=sdwilsh a=blocking-firefox3+] 2008-04-01 01:37:01 -07:00
reed@reedloden.com
a12e912b25 Bug 425924 - "CVS remove mozilla/toolkit/components/downloads/src/old.cpp" [p=ryanvm@gmail.com (Ryan VanderMeulen) r=sdwilsh] 2008-04-01 01:30:31 -07:00
reed@reedloden.com
c46c0b0f2b Bustage fix for bug 412374 - s/DOWNLOAD_BLOCKED/DOWNLOAD_BLOCKED_PARENTAL/. 2008-03-29 00:19:59 -07:00
reed@reedloden.com
45e6187afe Bug 412374 - "Download Mgr bypasses Vista Parental Controls' file-blocking flag" [p=jmathies@mozilla.com (Jim Mathies) r=sdwilsh sr=bsmedberg a=blocking-firefox3+] 2008-03-29 00:12:13 -07:00
edward.lee@engineering.uiuc.edu
16ef55f065 Bug 394247 - nsITransfer::Init fails (crash [@nsDownloadProxy::OnStateChange]). r=sdwilsh, b-ff3=beltzner 2008-03-27 14:00:20 -07:00
reed@reedloden.com
b5d11f686b Bug 420230 - "unable to save data urls to disk" [p=jmathies@mozilla.com (Jim Mathies) r=robarnold r=Mardak a1.9b5=beltzner] 2008-03-24 21:44:36 -07:00
sdwilsh@shawnwilsher.com
e99293d31f Bug 423273 - Fix storage API to not break old behavior. r=shaver, sr=shaver, a=shaver 2008-03-24 15:14:38 -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
reed@reedloden.com
9c21a1ed3d Back out Jim Mathies's patch from bug 412374 due to build bustage on non-Vista systems. 2008-03-19 23:34:26 -07:00
reed@reedloden.com
c327662d2b Bug 412374 - "Parental Controls can be easily bypassed by going back to the download source" [p=jmathies@mozilla.com (Jim Mathies) r=sdwilsh sr=bsmedberg a=blocking-firefox3+] 2008-03-19 23:01:26 -07:00
edward.lee@engineering.uiuc.edu
57d1667b9d Bug 335418 - Pause downloads when computer is about to go to sleep. r=sdwilsh, a1.9=beltzner 2008-03-19 18:16:02 -07:00
mconnor@steelgryphon.com
e296c9749a Bug 329741 - history.dat, formhistory.dat, downloads.rdf should be deleted when the user clears private data, r=gavin 2008-03-18 05:54:23 -07:00
reed@reedloden.com
2c1bf0f84c Bug 399498 - "use XDG downloads dir as default downloads dir" (use XDG download dir, with a fallback to the current default if the XDG user dirs are disabled) [p=chpe@gnome.org (Christian Persch) r=sdwilsh r=bsmedberg a1.9=damons] 2008-03-12 15:40:51 -07:00
edward.lee@engineering.uiuc.edu
27004fc15c Bug 412360 - Download Manager remains empty, downloads don't start, with this 3.0b2 downloads.sqlite. r=sdwilsh, r=biesi, sr=biesi, b-ff3=beltzner 2008-03-08 17:02:06 -08:00
tellrob@gmail.com
eff3be668c Bug 418960, Download scanner threads should be lower priority r=sdwilsh 2008-02-23 14:14:56 -08:00
tellrob@gmail.com
75781cc64b Bug 412565, Exception handlers for virus scanning r=sdwilsh 2008-02-22 16:59:30 -08:00
tellrob@gmail.com
3cc7a092a0 Bug 409815, Watchdog timer for download scanner r=sdwilsh 2008-02-22 16:30:51 -08:00
edward.lee@engineering.uiuc.edu
f99e988e7b Bug 406857 - Don't clear referrer when restarting downloads. r=sdwilsh, a1.9=beltzner 2008-02-22 00:35:59 -08:00
edward.lee@engineering.uiuc.edu
1bbeb5f5de Backing out bug 406857 to wait for red to go away. 2008-02-21 22:05:18 -08:00
edward.lee@engineering.uiuc.edu
57197d31b5 Bug 406857 - Don't clear referrer when restarting downloads. r=sdwilsh, a1.9=beltzner 2008-02-21 21:32:17 -08:00
sdwilsh@shawnwilsher.com
458fdbc8a3 Bug 409179 - Inconsistent autoresume state causes download manager instantiation to fail (can lead to crash). r=Mardak 2008-02-21 19:50:01 -08:00
roc+@cs.cmu.edu
24381328f1 Backing out fix for bug 406857 due to win2k3 test failure 2008-02-21 18:04:14 -08:00
edward.lee@engineering.uiuc.edu
1e7d063a59 Bug 406857 - Don't clear referrer when restarting downloads. r=sdwilsh, a1.9=beltzner 2008-02-21 16:17:19 -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
dougt@meer.net
22362e4320 disable download scanner on windows mobile r=bsmedberg, a=beltzner 2008-02-20 14:42:38 -08:00
jag@tty.nl
057bc17743 Bug 73353: Clean up our MODULE/REQUIRES story. rs=dbaron, a=brendan 2008-02-18 00:50:04 -08:00
sdwilsh@shawnwilsher.com
12b86dd2ef Bug 416205 - Update nsDownloadManager::Init from changes to mozIStorageService::OpenDatabase. r=Mardak, a=schrep 2008-02-09 11:10:06 -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
9886abfdaf Bug 408153 - "Use IAttachmentExecute antivirus API when it is available" [p=VYV03354@nifty.ne.jp (Masatoshi Kimura [emk]) / jmathies@mozilla.com (Jim Mathies) r=sdwilsh r=jmathies a=blocking-firefox3+] 2008-02-08 14:18:54 -08:00
sdwilsh@shawnwilsher.com
3ca7416f91 Backout of Bug 408153 2008-01-29 22:02:49 -08:00
sdwilsh@shawnwilsher.com
942853e60a Bug 408153 - Use IAttachmentExecute antivirus API when it is available (take 2). r=sdwilsh, r=robarnold, a=beltzner, a=mconnor 2008-01-29 21:13:38 -08:00
sdwilsh@shawnwilsher.com
018a7c797b Bug 412204 - anti virus scanning is slow and unnecessary. r=jimm 2008-01-29 21:07:44 -08:00
sdwilsh@shawnwilsher.com
38000035fd Backout of Bug 408153 2008-01-29 16:43:51 -08:00
sdwilsh@shawnwilsher.com
4ca64cc09a Bug 408153 - Use IAttachmentExecute when it is available. Patch by Masatoshi Kimura <VYV03354@nifty.ne.jp> and Jim Mathies <jmathies@mozilla.com>. r=sdwilsh, r=robarnold, a=damons 2008-01-29 15:48:04 -08:00
sdwilsh@shawnwilsher.com
8e7d08ad84 Bug 414214 - Download Manager window doesn't stay open when browser.download.manager.closeWhenDone is true. r=Mano 2008-01-29 15:43:31 -08:00
gavin@gavinsharp.com
cc514c1931 Bug 404572: don't show multiple quit dialogs if you cancel the quit on the first one, patch by HÃ¥kan Waara <hwaara@gmail.com> and Graeme McCutcheon <graememcc_firefox@graeme-online.co.uk>, r=me 2008-01-29 13:16:02 -08:00
sdwilsh@shawnwilsher.com
5a57faed2a Bug 414161 - Quit & cancelation confirmation should not be displayed if downloads are resumable. r=Mardak, a=damons 2008-01-28 20:58:31 -08:00
edward.lee@engineering.uiuc.edu
dcfdf106f5 Bug 405107 - File->Save Page As... download often reports 0 bytes as saved. r=sdwilsh, b-ff3=beltzner 2008-01-27 14:38:37 -08:00
sdwilsh@shawnwilsher.com
76950839ba Bug 408605 - Preference to control cross-session download behaviour. Patch by graememcc <graememcc_firefox@graeme-online.co.uk>. r=sdwilsh, a=schrep 2008-01-26 13:11:31 -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
reed@reedloden.com
e7af4afea9 Bug 412844 - "DownloadManagerUI.visible is always false" [p=victor.gubin@teamdev.com (Victor Gubin) r=sdwilsh a1.9=schrep] 2008-01-18 23:04:59 -08:00
dolske@mozilla.com
0dae9c8ae9 Solaris bustage fix (r=jst) for Bug 394272 - Mingw build error in nsDownloadManager.cpp 2008-01-10 01:10:21 -08:00
martijn.martijn@gmail.com
e44fe42e84 Bug 394272 - Mingw build error in nsDownloadManager.cpp, r=tellrob, a=mconnor 2008-01-09 04:20:18 -08:00
reed@reedloden.com
8fe8cc641b Bug 393305 - "Determine multi-scan behavior" [p=jmathies@mozilla.com (Jim Mathies) r=gavin a=blocking-firefox3+] 2008-01-08 23:38:55 -08:00
sdwilsh@shawnwilsher.com
a9b4d699f6 Bug 401582 - Download Manager stuck scanning for viruses. r=Mardak, a=beltzner 2007-12-26 17:42:05 -08:00
reed@reedloden.com
c05835661c Bug 403817 - "nsDownloadManager.cpp #includes nsTArray.h but doesn't use it" [p=rahul@murmuria.in (Rahul Murmuria) r=gavin a1.9=mconnor] 2007-12-11 00:54:30 -08:00
reed@reedloden.com
12c596dbee Bug 393303 - "Create a blocked string for dirty downloads (virus scan failed)." [p=comrade693+bmo@gmail.com (Shawn Wilsher [sdwilsh]) r=gavin a=blocking-firefox3+] 2007-11-30 22:49:07 -08:00
reed@reedloden.com
57e492fc6f Back out sdwilsh's patch for bug 393303 as a last ditch effort to fix the perf regression. 2007-11-30 19:17:32 -08:00
reed@reedloden.com
cdf0528474 Bug 393303 - "Create a blocked string for dirty downloads (virus scan failed)" [p=comrade693+bmo@gmail.com (Shawn Wilsher [sdwilsh]) r=gavin a=blocking-firefox3+] 2007-11-30 12:24:10 -08:00
sdwilsh@shawnwilsher.com
10f433e9ca Bug 390491 - Add advanced search button that brings up places UI (back-end only landing). r=Mano, a=beltzner 2007-11-23 13:29:22 -08:00
bugzilla@standard8.plus.com
46665d12a5 Bug 403683 Remove some unnecessary nsISupportsArray includes from toolkit. r=gavin,a1.9=dsicore 2007-11-15 12:36:06 -08:00
sdwilsh@shawnwilsher.com
6d0e410d33 Bug 395092 - Don't send dl-start event for download resume, (Add dl-pause and dl-resume events?). r=Mardak, a=blocking-firefox3 2007-11-12 18:50:13 -08:00
gavin@gavinsharp.com
153cd2ed8a Bug 401430: download manager 'add to recent docs' functionality (Windows) isn't working, r=sdwilsh 2007-10-30 11:31:50 -07:00
edward.lee@engineering.uiuc.edu
2714bb52a3 Bug 399632 - Resume (not restart) a download after firefox crashes. r=sdwilsh, b-ff3=mconnor, a1.9=mconnor, aM9=mconnor 2007-10-24 15:39:05 -07:00
edward.lee@engineering.uiuc.edu
ccf743f7b0 Bug 399817 - Resume downloads marked as auto-resume when starting download manager. r=sdwilsh, a1.9=mconnor, aM9=mconnor 2007-10-24 15:34:02 -07:00
edward.lee@engineering.uiuc.edu
29dbac5e9f Bug 399816 - Pause downloads when quitting firefox instead of canceling. r=sdwilsh, a1.9=mconnor, aM9=mconnor 2007-10-24 15:31:49 -07:00
edward.lee@engineering.uiuc.edu
57baa63262 Bug 399815 - Store autoResume in moz_downloads table to indicate if a download should auto-resume. r=sdwilsh, a1.9=mconnor aM9=mconnor 2007-10-24 15:23:13 -07:00
edward.lee@engineering.uiuc.edu
b124fdf79e Bug 395144 - Figure out what to do when we are supposed to open an application with download resume. r=sdwilsh, b-ff3=beltzner, aM9=beltzner 2007-10-24 15:19:04 -07:00
edward.lee@engineering.uiuc.edu
280ceb4187 Bug 399563 - Don't delete partially downloaded files on canceled exthandler transfers. r=biesi, sr=biesi, aM9=beltzner 2007-10-24 15:12:54 -07:00
edward.lee@engineering.uiuc.edu
5691083ccf Bug 397380 - Clear the temp file path upon successful completion of the download. r=sdwilsh, a=mconnor 2007-10-13 17:57:34 -07:00
reed@reedloden.com
e044dff1b7 Bug 399050 - "directories created with wrong permissions" [p=chpe r=sdwilsh a1.9=mconnor] 2007-10-11 14:45:12 -07:00
edward.lee@engineering.uiuc.edu
0c5bca4593 Bug 394039 - Calling removeDownload() works but doesn't update download window. r=sdwilsh, b-ff3=mconnor 2007-10-07 10:21:57 -07:00
edward.lee@engineering.uiuc.edu
5623361228 Bug 384810 - DM should restore the database state gracefully after a crash. r=sdwilsh, a=mconnor 2007-10-07 09:15:32 -07:00
gavin@gavinsharp.com
de30c4bf3d Bug 398174: add DM 'addToRecentDocs' pref to firefox.js, and add a comment explaining it's use, r+a=mconnor 2007-10-03 09:00:48 -07:00
edward.lee@engineering.uiuc.edu
cf4937d8ae Bug 398218 - Download DB tracks -1 as the max size when resuming. r=sdwilsh, a=mconnor 2007-10-02 08:08:12 -07:00
edward.lee@engineering.uiuc.edu
558ba82a04 Bug 397967 - Refactor nsDM::CompleteDownload|ExecuteDesiredAction to nsD::Finalize|ExecuteDesiredAction|MoveTempToTarget. r=sdwilsh, a=mconnor 2007-10-02 08:03:16 -07:00
edward.lee@engineering.uiuc.edu
950e8f8e74 Bug 382388 - nsDownload::OnStateChange doesn't check aStatus for failure. r=sdwilsh, a=mconnor 2007-10-01 17:39:50 -07:00
edward.lee@engineering.uiuc.edu
e14c2cac9c Bug 394548 - Store download progress in database when changing states. r=sdwilsh, a=mconnor 2007-10-01 17:16:12 -07:00
edward.lee@engineering.uiuc.edu
311e58a099 Bug 395537 - Nothing happens if you resume a download that you deleted. r=sdwilsh, blocking-ff3=mconnor 2007-10-01 16:57:48 -07:00
gavin@gavinsharp.com
10c057e60d Bug 392152: notify front-end when clearing DM history, so that it can clear the active list, r=sdwilsh 2007-10-01 16:24:08 -07:00
edward.lee@engineering.uiuc.edu
0a56bc82f0 Bug 398197 - Canceled queued downloads come from Wed, Dec 31, 1969 6:00 PM. r=sdwilsh, a=mconnor 2007-10-01 15:39:06 -07:00
edward.lee@engineering.uiuc.edu
8228d45f3f Bug 381517 - Download manager fails when it should probably just ignore the failure. r=sdwilsh, a=mconnor 2007-10-01 12:56:24 -07:00
edward.lee@engineering.uiuc.edu
6607ea668e Bug 395330 - Active downloads don't appear in download manager. r=sdwilsh, blocking-ff3=mconnor 2007-10-01 12:12:26 -07:00
edward.lee@engineering.uiuc.edu
76a42dde5b Bug 230870 - Cross-Session resumable downloads (resume after quitting firefox). r=sdwilsh, a=mconnor 2007-09-26 00:26:06 -07:00
edward.lee@engineering.uiuc.edu
be3791f701 Bug 396457 - Store mTempFile as tempPath in moz_downloads table. r=sdwilsh, a=mconnor 2007-09-26 00:20:16 -07:00
sdwilsh@shawnwilsher.com
535352ec77 Bug 394346 - Allow for named notifications with nsIAlertsService. r=mano, a=mconnor 2007-09-21 19:08:28 -07:00
reed@reedloden.com
67dc890ccf Bug 393932 - "Add extra DB schema sanity checking in debug builds" [p=mwu r=sdwilsh a1.9=mconnor] 2007-09-17 15:51:33 -07:00
reed@reedloden.com
d8622ba1e4 Bug 396456 - "Refactor PauseResume into Pause, Cancel, Resume, RealResume" [p=edilee@gmail.com (Edward Lee [Mardak]) r=sdwilsh a1.9=mconnor] 2007-09-17 15:41:15 -07:00
sdwilsh@shawnwilsher.com
7e63941804 Bug 396453 - Convert DownloadManager flag variables into flag functions. Patch by Edward Lee <edilee@gmail.com>. r=sdwilsh, a=mconnor 2007-09-17 14:16:16 -07:00
sdwilsh@shawnwilsher.com
3301a3a727 Bug 396451 - Index with i++ for DownloadManager sql queries. Patch by Edward Lee <edilee@gmail.com>. r=sdwilsh, a=mconnor 2007-09-17 14:10:29 -07:00
sdwilsh@shawnwilsher.com
a771b2bf61 Bug 396450 - Move logic out of nsDownloadManager.h. Patch by Edward Lee <edilee@gmail.com>. r=sdwilsh, a=mconnor 2007-09-17 14:02:39 -07:00
sdwilsh@shawnwilsher.com
d348d25ede Bug 396488 - Clean up nsDownloadManager - spaces and stars. Patch by Edward Lee <edilee@gmail.com>. r=sdwilsh, a=mconnor 2007-09-17 13:49:24 -07:00
sdwilsh@shawnwilsher.com
3b2d65c8f3 Bug 395134 - When resuming a download, strange things happen in the UI. Patch by Edward Lee <edilee@gmail.com>. r=sdwilsh, a=mconnor 2007-09-17 13:40:47 -07:00
gavin@gavinsharp.com
59f843340c Revert accidental check-in 2007-09-17 11:44:40 -07:00
gavin@gavinsharp.com
9d7c6a0d55 Bug 395708: handle invalid IDs passed to nsIDownloadManagerUI::show (makes clicking on the "download complete" notification work when the download manager isn't open), r=sdwilsh 2007-09-17 11:43:32 -07:00
sdwilsh@shawnwilsher.com
c420032dbf Bug 395207 - Download Resume doesn't actually work. r=mconnor, a=mconnor 2007-09-16 07:46:25 -07:00
dmose@mozilla.org
f8715616ef Fix crash if a paused download is stopped (bug 395188); patch by Mardak, r=sdwilsh, a=dsicore 2007-09-07 12:14:06 -07:00
sdwilsh@shawnwilsher.com
4dda63e01c Bug 377243 - [SoC] Implement Download Resume. Patch by Brahmana <om.brahmana@gmail.com> and Shawn Wilsher <me@shawnwilsher.com>. r=sdwilsh, r=mconnor, a=[wanted-firefox3] 2007-09-05 21:59:34 -07:00
gavin@gavinsharp.com
f9179f6457 Bug 394615: 0 byte downloads don't appear in the download manager, patch by Edward Lee <edilee@gmail.com>, r=sdwilsh 2007-09-04 09:27:38 -07:00
sdwilsh@shawnwilsher.com
6861590377 Bug 384810 - DM should restore the database state gracefully after a crash. r=mano 2007-08-30 12:01:39 -07:00