Commit Graph

113 Commits

Author SHA1 Message Date
Paolo Amadini
7cb0199d9a Bug 1114624 - Don't register the legacy nsIDownloadManager implementation of nsITransfer by default anymore. r=mak,marco,margaret,fabrice 2015-02-05 11:19:01 +00:00
Christoph Kerschbaumer
6687583953 Bug 1125991 - Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/components/jsdownloads - tests (r=paolo) 2015-02-02 20:10:07 -08:00
Ganesh Sahukari
fab58449ed Bug 1114594 - Remove promptForSaveToFile in favor of promptForSaveToFileAsync. r=paolo 2015-01-27 16:07:20 -05:00
Ryan VanderMeulen
9f10340a50 Backed out changeset dd417504346b (bug 1114594) for crashes.
CLOSED TREE
2015-01-27 15:17:39 -05:00
Ganesh Sahukari
46b073b057 Bug 1114594 - Remove promptForSaveToFile in favor of promptForSaveToFileAsync. r=paolo 2015-01-20 10:11:00 +00:00
Carsten "Tomcat" Book
0985679245 Backed out changeset d34e894a9ea2 (bug 1114594) for xpcshell and m5 test failures 2015-01-26 15:01:16 +01:00
Ganesh Sahukari
119c6dbe5e Bug 1114594 - Remove promptForSaveToFile in favor of promptForSaveToFileAsync. r=paolo 2015-01-20 10:11:00 +00:00
Tim Taubert
bf53581c32 Bug 1113178 - Replace removeAllPages() in toolkit/components/jsdownloads/ r=mak 2015-01-17 19:05:31 +01:00
Hiroyuki Ikezoe
8a9bf503ae Bug 941063 - Add a property to get the size of the downloads data written to disk. r=smacleod 2015-01-13 13:41:46 +00:00
Steven MacLeod
1b3cf71bf8 Bug 1068664 - Introduce API for downloads in a blocked state with file on disk. r=paolo
This new API allows consumers to call unblock() on the download if
they'd like to allow it. If they'd like to delete the blocked download's
partial data they may call confirmBlock(). Downloads also have a new
hasBlockedData property which will be true if the Download has blocked
data on disk.

DownloadIntegration now also allows for checking if handling downloads
in a blocked state is supported. As platforms support the new operations
on a blocked download they should update their implementation of this
check to keep the blocked download data on disk.

This also moves the reputation checking into the saver so it can happen
before moving the download to its final path - so we don't have possibly
dangerous files sitting around with their intended filename / extension.

If a Download did not use a part file and it fails the reputation check
we will always remove it to prevent dangerous files from existing with
their intended filename.

--HG--
extra : rebase_source : 519e3b4b98c8ccfc00039f35bd32e3143e39a5f8
2014-12-08 16:31:03 -05:00
Wes Johnston
eb4589c305 Bug 1063217 - Support a PDF DownloadSaver. r=paolo 2014-10-28 16:05:32 -07:00
Sid Stamm
c15d072ebe Bug 704320 - Add referrer policy support for nsIWebBrowserPersist and its consumers. (r=jst) 2014-11-18 08:47:14 -05:00
Magnus Melin
a9b0fe1017 Bug 1074793 - Set more restrictive permissions for downloads in the temporary directory. r=paolo 2014-11-02 15:15:43 +02:00
Patrick McManus
3a56bb0ba8 bug 1088850 - disable http/1 framing enforcement from bug 237623 r=bagder 2014-10-24 16:19:40 -04:00
Dave Hylands
4600927293 Bug 1072535 - Pt 1 - Have DownloadDone notify device storage when a new download is available. r=paolo 2014-10-14 13:50:57 -07:00
Andrew Halberstadt
2da4ee197d Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Shu-yu Guo
320f4e1440 Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
Nathan Froyd
1023cdecbc Bug 1042903 - declare jsdownloads's xpcshell data in manifests; r=glandium 2014-07-23 15:40:45 -04:00
Paolo Amadini
946fa0ce67 Bug 1023402 - API review for OS.File.setPermissions. r=Yoric
--HG--
rename : toolkit/components/osfile/tests/xpcshell/test_osfile_async_setPerms.js => toolkit/components/osfile/tests/xpcshell/test_osfile_async_setPermissions.js
2014-07-09 14:26:41 +01:00
Jim Blandy
4d6a633bba Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Paolo Amadini
7fa51b688f Bug 983197 - Test that downloads fail with an HTTP/1.1 response shorter than the Content-Length. r=enn 2014-03-13 09:08:00 +00:00
David Rajchenbach-Teller
64d7b9648b Bug 1010277 - Fixed uncaught async error in test_DownloadImport.js. r=paolo 2014-05-14 08:39:00 +02:00
Paolo Amadini
5a2734396d Bug 941317 - Switch Downloads.jsm to use Promise.jsm. r=enn 2014-03-17 15:58:44 +01:00
Gregory Szorc
5f7ff500d3 Bug 969021 - Part 1: Consolidate moz.build data into parent moz.build files; r=ted
Many moz.build files define things that could be defined in parent
moz.build files. Keeping the number of moz.build files low helps with
build times due to less I/O and fewer directories traversed.

This patch eliminates a lot of moz.build files by moving their content
into parent moz.build files.

--HG--
extra : rebase_source : 0cfdf2697d10532e5b03cd27fbaadb41f42b837c
extra : amend_source : 0119d4e4881217f105e0e4ba1dfa9c8f7295f3e9
extra : histedit_source : eb49e62c67af2005fdc08d9c9a07f56bee98d558%2C50951e960e450f9b0e48fc7e8ec369d8666a63b0
2014-02-06 13:00:20 -08:00
Roberto A. Vitillo
c94e7dddf3 Bug 960966 - Remove TelemetryPing.js from telemetry. r=Yoric, r=BenWa 2014-01-22 11:43:26 +00:00
Andy Wingo
db3a35cb7d Bug 945828 - Work around bug 945756. r=luke 2013-12-03 19:04:25 +01:00
Ryan VanderMeulen
d529bbd277 Backed out changeset 4cbb184bf6cb (bug 945828) for Linux64 debug xpcshell crashes. 2013-12-03 18:10:33 -05:00
Andy Wingo
e2c13b49c9 Bug 945828 - Work around bug 945756. r=luke 2013-12-03 19:04:25 +01:00
Mike Hommey
b4eb12b707 Bug 943728 - Convert several resource install using double quotes to INSTALL_TARGETS and editor/libeditor/html/tests to mochitest manifest. r=gps,r=mshal 2013-12-03 06:34:21 +09:00
Felipe Gomes
5b12e7ad40 Bug 941099 - Default application handler is not correctly used when an alternate app handler exists. r=paolo 2013-11-28 00:57:05 -02:00
Monica Chew
d3f3ef3fd8 Bug 895476: Integrate application reputation with download manager, disable remote lookups for application reputation (r=paolo) 2013-11-11 10:54:09 -08:00
Raymond Lee
0644680292 Bug 926736 - Returns path string for get directory methods in DownloadIntegration.jsm r=paolo 2013-10-23 10:04:55 +08:00
Felipe Gomes
898bbfb789 Bug 906134 - Implement xpcshell tests for the DownloadImport module. r=paolo 2013-10-24 13:25:05 +02:00
Paolo Amadini
e68172832d Bug 918466 - Residual file left after canceling a download. r=enn 2013-10-10 16:42:03 +02:00
Neil Deakin
020f0a214f Bug 908260, support 450 error for windows parental controls in new download api, r=paolo 2013-09-26 10:58:21 -04:00
Neil Deakin
7828a4c34f Bug 908260, pass properties to DownloadError constructor, r=paolo 2013-09-26 10:58:19 -04:00
Wes Kocher
9f40060dc3 Merge fx-team to m-c 2013-09-24 20:06:37 -07:00
Raymond Lee
ff3cbd678e Bug 917217 - Rename getUserDownloadsDirectory and getTemporaryDownloadsDirectory. r=paolo 2013-09-24 09:48:02 +08:00
Paolo Amadini
1d1b11cd65 Bug 911474 - Fix intermittent test_DownloadIntegration.js failure. r=enn 2013-09-23 15:24:51 +02:00
Gregory Szorc
ed68c2482b Bug 901990 - Part 2: Upgrade xpcshell manifests; r=ted
--HG--
rename : toolkit/mozapps/extensions/test/xpcshell-unpack/head_unpack.js => toolkit/mozapps/extensions/test/xpcshell/head_unpack.js
2013-09-24 11:50:08 -07:00
Ryan VanderMeulen
d1320d9844 Merge m-c to fx-team on a CLOSED TREE. 2013-09-17 20:27:03 -04:00
Paolo Amadini
31af587fbf Bug 899102 - nsExternalHelperAppService should notify when cancellation is complete. r=enn 2013-09-17 18:02:21 +02:00
Paolo Amadini
abdb65d20a Bug 916433 - The task in the "tail.js" file of the Downloads API tests is not executed. r=felipe 2013-09-17 18:02:21 +02:00
Paolo Amadini
966f429ab1 Bug 916430 - General Downloads API review. r=enn 2013-09-17 18:02:21 +02:00
Paolo Amadini
743a095432 Bug 913110 - Add a combined summary of public and private downloads. r=enn 2013-09-17 18:02:20 +02:00
Neil Deakin
8b8cf4e5fc Bug 908256, stop downloads when suspending or going offline, r=paolo 2013-09-17 09:23:22 -04:00
Ryan VanderMeulen
03f88b4429 Backed out changeset 4d44bc8da75c (bug 913110)
CLOSED TREE
2013-09-16 22:45:42 -04:00
Paolo Amadini
f789061181 Bug 913110 - Add a combined summary of public and private downloads. r=enn 2013-09-14 09:59:21 +02:00
Wes Kocher
0b825164cb Backed out changeset 6f0f765b2e1d (bug 913110) for leaking 2013-09-13 14:52:40 -07:00
Paolo Amadini
d01f5d9f73 Bug 913110 - Add a combined summary of public and private downloads. r=enn 2013-09-13 22:44:54 +02:00