Commit Graph

178 Commits

Author SHA1 Message Date
Nigel Babu
dda22d2ceb Backed out changeset 874285de3dc7 (bug 1223437) 2015-11-16 16:03:15 +05:30
Christoph Kerschbaumer
2d47f157d5 Bug 1223437 - Use channel.asyncOpen2 in toolkit/components/jsdownloads/test/unit (r=sicking) 2015-11-15 14:48:38 -08:00
Carsten "Tomcat" Book
036e6d2fa3 Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Aidin Gharibnavaz
822701ee34 Bug 377630 - Preventing filename disclosure, by putting downloaded files in a private directory. r=bz 2015-09-09 09:21:00 +02:00
Magnus Melin
5b81504ee1 Bug 1159632 - TEST-UNEXPECTED-FAIL | toolkit/components/jsdownloads/test/unit/test_DownloadImport.js when browser.helperApps.deleteTempFileOnExit true. r=paolo 2015-05-25 21:16:22 +03:00
Wes Kocher
a873030f3a Backed out changeset ee2d0bbca72c (bug 1159632) for windows xpcshell permafail 2015-06-07 18:57:58 -07:00
Magnus Melin
c928e3cb15 Bug 1159632 - TEST-UNEXPECTED-FAIL | toolkit/components/jsdownloads/test/unit/test_DownloadImport.js. r=paolo
The failure occured when browser.helperApps.deleteTempFileOnExit was set to true.
2015-05-25 21:16:22 +03:00
Christoph Kerschbaumer
9ea833fd29 Bug 1162657 - Turn NewChannel deprecation warnings into assertions (r=sworkman,sicking,paolo) 2015-05-13 17:58:52 -07:00
Georg Fritzsche
f1b09b984d Bug 1149754 - Part 1: Rename TelemetryPing.jsm to TelemetryController.jsm. r=vladan 2015-04-27 18:07:58 +02:00
Ganesh Sahukari
ebe8092b28 Bug 1009465 - Set the read-only attribute for temporary downloads on Windows. r=paolo 2015-04-01 23:43:28 +05:30
Aime Galmi
60ced7a657 Bug 1132213 - Remove newChannel2 and asyncFetch2 calls in the "jsdownloads" folder. r=paolo 2015-03-22 01:38:01 +01:00
Hiroyuki Ikezoe
c5fc11787e Bug 1139254 - Use MockRegistrar in toolkit/components. r=Unfocused 2015-03-24 19:47:00 -04:00
Paolo Amadini
d16d2efda7 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
0987eed315 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
89b61a06c1 Bug 1114594 - Remove promptForSaveToFile in favor of promptForSaveToFileAsync. r=paolo 2015-01-27 16:07:20 -05:00
Ryan VanderMeulen
feab374f8c Backed out changeset dd417504346b (bug 1114594) for crashes.
CLOSED TREE
2015-01-27 15:17:39 -05:00
Ganesh Sahukari
fcdc7673f5 Bug 1114594 - Remove promptForSaveToFile in favor of promptForSaveToFileAsync. r=paolo 2015-01-20 10:11:00 +00:00
Carsten "Tomcat" Book
c5e92c4e18 Backed out changeset d34e894a9ea2 (bug 1114594) for xpcshell and m5 test failures 2015-01-26 15:01:16 +01:00
Ganesh Sahukari
9071495fc0 Bug 1114594 - Remove promptForSaveToFile in favor of promptForSaveToFileAsync. r=paolo 2015-01-20 10:11:00 +00:00
Tim Taubert
36c4079828 Bug 1113178 - Replace removeAllPages() in toolkit/components/jsdownloads/ r=mak 2015-01-17 19:05:31 +01:00
Hiroyuki Ikezoe
99dc943858 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
0af8f0ab6b 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.
2014-12-08 16:31:03 -05:00
Wes Johnston
39f3cd6d6a Bug 1063217 - Support a PDF DownloadSaver. r=paolo 2014-10-28 16:05:32 -07:00
Sid Stamm
7327eccdb3 Bug 704320 - Add referrer policy support for nsIWebBrowserPersist and its consumers. (r=jst) 2014-11-18 08:47:14 -05:00
Magnus Melin
f8110da23a Bug 1074793 - Set more restrictive permissions for downloads in the temporary directory. r=paolo 2014-11-02 15:15:43 +02:00
Patrick McManus
3242a33df4 bug 1088850 - disable http/1 framing enforcement from bug 237623 r=bagder 2014-10-24 16:19:40 -04:00
Dave Hylands
3bf2f293f2 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
11b824f09b Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Shu-yu Guo
40c62f33a5 Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
Nathan Froyd
0aab29dbfb Bug 1042903 - declare jsdownloads's xpcshell data in manifests; r=glandium 2014-07-23 15:40:45 -04:00
Paolo Amadini
a14291b5ec Bug 1023402 - API review for OS.File.setPermissions. r=Yoric 2014-07-09 14:26:41 +01:00
Jim Blandy
39dc0c6097 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
14dd343f32 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
fcb4bae158 Bug 1010277 - Fixed uncaught async error in test_DownloadImport.js. r=paolo 2014-05-14 08:39:00 +02:00
Paolo Amadini
eb2124c3b9 Bug 941317 - Switch Downloads.jsm to use Promise.jsm. r=enn 2014-03-17 15:58:44 +01:00
Gregory Szorc
dffb8830ba 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.
2014-02-06 13:00:20 -08:00
Roberto A. Vitillo
a4e7d726ef Bug 960966 - Remove TelemetryPing.js from telemetry. r=Yoric, r=BenWa 2014-01-22 11:43:26 +00:00
Andy Wingo
5d16730b2c Bug 945828 - Work around bug 945756. r=luke 2013-12-03 19:04:25 +01:00
Ryan VanderMeulen
5c42801d6d Backed out changeset 4cbb184bf6cb (bug 945828) for Linux64 debug xpcshell crashes. 2013-12-03 18:10:33 -05:00
Andy Wingo
dea2390daf Bug 945828 - Work around bug 945756. r=luke 2013-12-03 19:04:25 +01:00
Mike Hommey
3a2a616666 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
bb07be877f 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
3bdfc6726a 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
966f09c8c0 Bug 926736 - Returns path string for get directory methods in DownloadIntegration.jsm r=paolo 2013-10-23 10:04:55 +08:00
Felipe Gomes
f0fcb2a78f Bug 906134 - Implement xpcshell tests for the DownloadImport module. r=paolo 2013-10-24 13:25:05 +02:00
Paolo Amadini
9c4f576bc7 Bug 918466 - Residual file left after canceling a download. r=enn 2013-10-10 16:42:03 +02:00
Neil Deakin
3ad9d165c0 Bug 908260, support 450 error for windows parental controls in new download api, r=paolo 2013-09-26 10:58:21 -04:00