Граф коммитов

350 Коммитов

Автор SHA1 Сообщение Дата
Paolo Amadini 63c6cb1d8d Bug 1273265 - Test writing zone information for files with long names. r=jimm
MozReview-Commit-ID: 7302E1j7tdq

--HG--
extra : rebase_source : 4887b759c22f8eb015dad424d93603e6e560a899
2017-10-31 14:43:53 +00:00
Paolo Amadini 98b8fb39b7 Bug 1411979 - Share the getTempFile function in xpcshell and browser tests. r=mak
MozReview-Commit-ID: 5hshgOrFqws

--HG--
extra : rebase_source : c7b173f7c2685c9522ef0626b74819273352a373
extra : source : 68e85782bbcab3c06e729551643bdc602cf8de71
2017-10-31 13:25:45 +00:00
Sebastian Hengst 7bf9eb161a Backed out 2 changesets (bug 1411979) for failing xpcshell's toolkit/components/jsdownloads/test/unit/test_PrivateTemp.js. r=backout on a CLOSED TREE
Backed out changeset 7a4f33d16b9e (bug 1411979)
***
Backed out changeset 68e85782bbca (bug 1411979)

--HG--
extra : histedit_source : 0226bf9f95762ef7fe4e57aee97b96ae5deff496%2C066dd55855dbcbd146642acd72bcd4e5d8044a2f
2017-10-30 19:19:45 +01:00
Paolo Amadini 7e4a6c3456 Bug 1411979 - Share the getTempFile function in xpcshell and browser tests. r=mak
MozReview-Commit-ID: 5hshgOrFqws

--HG--
extra : rebase_source : 9377484a4416829e0bfbe30c70d434b331e7301c
2017-10-30 16:53:22 +00:00
DimiL 34c0f59f0b Bug 1384753 - Move Application Reputation files into a new component. r=francois
--HG--
rename : toolkit/components/downloads/ApplicationReputation.cpp => toolkit/components/reputationservice/ApplicationReputation.cpp
rename : toolkit/components/downloads/ApplicationReputation.h => toolkit/components/reputationservice/ApplicationReputation.h
rename : toolkit/components/downloads/chromium/LICENSE => toolkit/components/reputationservice/chromium/LICENSE
rename : toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.pb.cc => toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.cc
rename : toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.pb.h => toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.h
rename : toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.proto => toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.proto
rename : toolkit/components/downloads/nsIApplicationReputation.idl => toolkit/components/reputationservice/nsIApplicationReputation.idl
rename : toolkit/components/downloads/test/unit/.eslintrc.js => toolkit/components/reputationservice/test/unit/.eslintrc.js
rename : toolkit/components/downloads/test/unit/data/block_digest.chunk => toolkit/components/reputationservice/test/unit/data/block_digest.chunk
rename : toolkit/components/downloads/test/unit/data/digest.chunk => toolkit/components/reputationservice/test/unit/data/digest.chunk
rename : toolkit/components/downloads/test/unit/data/signed_win.exe => toolkit/components/reputationservice/test/unit/data/signed_win.exe
rename : toolkit/components/downloads/test/unit/head_download_manager.js => toolkit/components/reputationservice/test/unit/head_download_manager.js
rename : toolkit/components/downloads/test/unit/xpcshell.ini => toolkit/components/reputationservice/test/unit/xpcshell.ini
extra : rebase_source : 0ee026299fbe2122f94588de63d46b3752bcf26d
2017-10-23 16:18:52 +08:00
Sebastian Hengst 0cd2b5d266 Backed out 2 changesets (bug 1384753) for frequently failing toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_saveAs.html on Android. r=backout on a CLOSED TREE
Backed out changeset 2f0da700e651 (bug 1384753)
Backed out changeset 9801aade9511 (bug 1384753)

--HG--
rename : toolkit/components/reputationservice/ApplicationReputation.cpp => toolkit/components/downloads/ApplicationReputation.cpp
rename : toolkit/components/reputationservice/ApplicationReputation.h => toolkit/components/downloads/ApplicationReputation.h
rename : toolkit/components/reputationservice/chromium/LICENSE => toolkit/components/downloads/chromium/LICENSE
rename : toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.cc => toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.pb.cc
rename : toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.h => toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.pb.h
rename : toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.proto => toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.proto
rename : toolkit/components/reputationservice/nsIApplicationReputation.idl => toolkit/components/downloads/nsIApplicationReputation.idl
rename : toolkit/components/reputationservice/test/unit/.eslintrc.js => toolkit/components/downloads/test/unit/.eslintrc.js
rename : toolkit/components/reputationservice/test/unit/data/block_digest.chunk => toolkit/components/downloads/test/unit/data/block_digest.chunk
rename : toolkit/components/reputationservice/test/unit/data/digest.chunk => toolkit/components/downloads/test/unit/data/digest.chunk
rename : toolkit/components/reputationservice/test/unit/data/signed_win.exe => toolkit/components/downloads/test/unit/data/signed_win.exe
rename : toolkit/components/reputationservice/test/unit/head_download_manager.js => toolkit/components/downloads/test/unit/head_download_manager.js
rename : toolkit/components/reputationservice/test/unit/xpcshell.ini => toolkit/components/downloads/test/unit/xpcshell.ini
2017-10-27 18:36:30 +02:00
DimiL 7a49148363 Bug 1384753 - Move Application Reputation files into a new component. r=francois
MozReview-Commit-ID: Ehi9IziJyXB

--HG--
rename : toolkit/components/downloads/ApplicationReputation.cpp => toolkit/components/reputationservice/ApplicationReputation.cpp
rename : toolkit/components/downloads/ApplicationReputation.h => toolkit/components/reputationservice/ApplicationReputation.h
rename : toolkit/components/downloads/chromium/LICENSE => toolkit/components/reputationservice/chromium/LICENSE
rename : toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.pb.cc => toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.cc
rename : toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.pb.h => toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.h
rename : toolkit/components/downloads/chromium/chrome/common/safe_browsing/csd.proto => toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.proto
rename : toolkit/components/downloads/nsIApplicationReputation.idl => toolkit/components/reputationservice/nsIApplicationReputation.idl
rename : toolkit/components/downloads/test/unit/.eslintrc.js => toolkit/components/reputationservice/test/unit/.eslintrc.js
rename : toolkit/components/downloads/test/unit/data/block_digest.chunk => toolkit/components/reputationservice/test/unit/data/block_digest.chunk
rename : toolkit/components/downloads/test/unit/data/digest.chunk => toolkit/components/reputationservice/test/unit/data/digest.chunk
rename : toolkit/components/downloads/test/unit/data/signed_win.exe => toolkit/components/reputationservice/test/unit/data/signed_win.exe
rename : toolkit/components/downloads/test/unit/head_download_manager.js => toolkit/components/reputationservice/test/unit/head_download_manager.js
rename : toolkit/components/downloads/test/unit/xpcshell.ini => toolkit/components/reputationservice/test/unit/xpcshell.ini
extra : rebase_source : 6bb39e940087ebd71208d868fda3aa85f6f63e23
2017-10-23 16:18:52 +08:00
Dan Banner 7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Paolo Amadini c6564bb63b Bug 1402279 - Part 2 - Unify the usage of the DownloadPaths module. r=mak,aswan
MozReview-Commit-ID: HEhwkyxtYTP

--HG--
extra : rebase_source : f4adb90eea4898b8c769900400a3ead6246b9ece
extra : source : 41da9c5daa902543f0f59818b2e3bbae44605036
2017-09-27 12:13:07 +01:00
Paolo Amadini 56aa46cd29 Bug 1402279 - Part 1 - Move the DownloadPaths module to the jsdownloads folder. r=mak
MozReview-Commit-ID: 91ZqKef6NIE

--HG--
rename : toolkit/mozapps/downloads/DownloadPaths.jsm => toolkit/components/jsdownloads/src/DownloadPaths.jsm
rename : toolkit/mozapps/downloads/tests/unit/test_DownloadPaths.js => toolkit/components/jsdownloads/test/unit/test_DownloadPaths.js
extra : rebase_source : 09a94524be5a68e4e26f17e505b5d10d0ec7398c
extra : source : d5bc3152714edda86a0a4342b86fa2372d09f39d
2017-09-22 15:45:39 +01:00
Sebastian Hengst 72edf1fd45 Backed out changeset d5bc3152714e (bug 1402279) for failing devtools' devtools/client/jsonview/test/browser_jsonview_save_json.js. r=backout
--HG--
rename : toolkit/components/jsdownloads/src/DownloadPaths.jsm => toolkit/mozapps/downloads/DownloadPaths.jsm
rename : toolkit/components/jsdownloads/test/unit/test_DownloadPaths.js => toolkit/mozapps/downloads/tests/unit/test_DownloadPaths.js
2017-09-26 18:18:32 +02:00
Sebastian Hengst 811f53c0fc Backed out changeset 41da9c5daa90 (bug 1402279) 2017-09-26 18:17:51 +02:00
Paolo Amadini 9c4cbe557f Bug 1402279 - Part 2 - Unify the usage of the DownloadPaths module. r=mak,aswan
MozReview-Commit-ID: HEhwkyxtYTP

--HG--
extra : rebase_source : d17ef98796d5a4fcac899c6319045eec02b0633e
2017-09-26 16:03:24 +01:00
Paolo Amadini 8418fc1ba5 Bug 1402279 - Part 1 - Move the DownloadPaths module to the jsdownloads folder. r=mak
MozReview-Commit-ID: 91ZqKef6NIE

--HG--
rename : toolkit/mozapps/downloads/DownloadPaths.jsm => toolkit/components/jsdownloads/src/DownloadPaths.jsm
rename : toolkit/mozapps/downloads/tests/unit/test_DownloadPaths.js => toolkit/components/jsdownloads/test/unit/test_DownloadPaths.js
extra : rebase_source : 7505715770e8fa383a42e0f8a18258c08e8e0f3a
2017-09-22 15:45:39 +01:00
Mike de Boer 7faadd0d6e Bug 1395663 - Allow retrieving DownloadHistoryList objects that include a limited number of history results. r=Paolo
MozReview-Commit-ID: AaqCEPNntUb

--HG--
extra : rebase_source : e618b3273671086aea8283ad948c436bb094f631
2017-09-08 11:33:11 +02:00
Mike de Boer 7e6c729937 Bug 1396581 - Allow retrieving DownloadHistoryList objects that show private downloads. r=mak
MozReview-Commit-ID: 7lFuZQRmwWI

--HG--
extra : rebase_source : c786029f1c0e95a633fce0b246643315acd30c56
2017-09-05 11:44:07 +02:00
Dan Banner 0c789ae13f Bug 1394820 - Enable ESLint for DownloadIntegration.jsm r=standard8
MozReview-Commit-ID: INwMSXSJ31f

--HG--
extra : rebase_source : c7b2b8f0908b28ea606cee2535d279d44bfe9126
2017-08-29 18:57:11 +01:00
Johann Hofmann b5ba1bbb3c Bug 1139913 - Downloads with partial data should still keep the placeholder on disk. r=mak
This prevents naming conflicts if a paused or blocked download is retried from the original page.

MozReview-Commit-ID: 4rFZ5rP8saJ

--HG--
extra : rebase_source : 82dd14f0eb2f43c2404dff6e78aa564d07ba06d7
extra : source : d2a4fa2a4005db6c39aece63208059a86c5e35a5
2017-08-25 16:42:45 +01:00
Sebastian Hengst cb6cf95f70 Backed out changeset d2a4fa2a4005 (bug 1139913) for failing browser-chrome's browser_downloads_panel_height.js. r=backout 2017-08-24 18:55:43 +02:00
Johann Hofmann c5c5b0af8e Bug 1139913 - Downloads with partial data should still keep the placeholder on disk. r=mak
This prevents naming conflicts if a paused or blocked download is retried from the original page.

MozReview-Commit-ID: 4rFZ5rP8saJ

--HG--
extra : rebase_source : c392fc62cb33b2c2d70a1c3a8a975ddf93d394ea
2017-08-24 14:13:56 +01:00
Wes Kocher 7651bde05c Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9Abf0fILvvK
2017-08-08 15:16:00 -07:00
Wes Kocher 650baf5c45 Merge inbound to central, a=merge
MozReview-Commit-ID: HpVAbc2vi78
2017-08-08 15:14:28 -07:00
Eric Rahm fe8929dc60 Bug 1386825 - Part 2: Remove MOZ_B2G from toolkit. r=froydnj
MozReview-Commit-ID: Ji3MoFKLVI4
2017-08-08 14:41:07 -07:00
Paolo Amadini f07a275693 Bug 1382899 - Reduce Promise overhead in the DownloadLegacy.js progress events. r=florian
MozReview-Commit-ID: KS4kujUvX3s

--HG--
extra : rebase_source : c0b82eab2d97829a7a11cc51fa002c1eae49a4d0
2017-08-08 14:44:52 +01:00
dagasatvik d4398e95f2 Bug 1385820 - Enable the ESLint no-new-wrappers rule across mozilla-central; r=markh,standard8
MozReview-Commit-ID: FvJO3ibeiwg

--HG--
extra : rebase_source : 5fc5c6760924da81a6d0708ff0d5586fc62c8c5e
2017-08-07 23:57:51 +05:30
Masatoshi Kimura ca088e461c Bug 389565 - Remove nsIExternalProtocolService::LoadUrl. r=Paolo
MozReview-Commit-ID: lMq06cPWYB

--HG--
extra : rebase_source : 5c48597cbe4491fff93d3e757efa5ecad0f7fc22
2017-08-06 11:25:42 +09:00
Paolo Amadini a0fc00495b Bug 1381411 - Implement the DownloadHistoryList object. r=mak
This also changes the Library window to use the newly added back-end object. The only user-visible change should be how the selection behaves when retrying downloads.

MozReview-Commit-ID: 7CQr1m21rcB

--HG--
extra : rebase_source : e36faf63dadeba0c897b769cb7e14a2d01d0f628
extra : amend_source : 2c7a88b6e3d6de50b37c34a5579b3ab6fb0c10dd
2017-08-04 14:48:53 +01:00
Masatoshi Kimura f143125cc2 Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
MozReview-Commit-ID: DqJdTGopR9G

--HG--
extra : rebase_source : e8c9eb03468c075b79013b6e0bd8b367229c24cd
2017-07-29 20:50:21 +09:00
Punam 9cb48aea09 Bug 1385402 - Cloud Storage API - Handle null while getting download folder r=Gijs
MozReview-Commit-ID: C9HC4KSAuG4

--HG--
extra : rebase_source : adb931f313e5ed33691eacd6bcd0312a8302f07c
2017-07-30 14:52:26 -07:00
Punam 4a49a600af Bug 1357171 - cloud storage module r=Gijs
* Has storage providers metadata
* Scan for storage providers returning preferred provider
* Helper methods to access cloud services prefs
* Helper method to set cloud storage as default download directory
* Notify observers for displaying cloud storage prompt
* Support pref value browser.downloads.folderList 3
* Read dropbox custom downloadpath from info.json
* Handle rejected providers by saving response in cloud.services.rejected.key
* Load providers metadata from providers.json
* Tested using add-on implemented in Bug 1365129
* Tests for Linux, Mac and Win Platform

MozReview-Commit-ID: LrmoDfsRTBV

--HG--
extra : rebase_source : cc3933407def5da26b4c0fb29a32797bc6a13130
2017-07-27 10:14:17 -07:00
Paolo Amadini 54a5e2c5a7 Bug 830415 - Part 2 - Move the front-end code that stores download metadata in history to the DownloadHistory module. r=mak
Regression tests will be added in bug 1381411 when methods to retrieve the metadata will be available.

MozReview-Commit-ID: I3MgwM0EOty

--HG--
extra : source : 6b7ffdcb3f99be007e88c685fd54a8132d844101
2017-07-26 16:12:57 +01:00
Paolo Amadini c58336f839 Bug 830415 - Part 1 - Update the header styles of the Downloads API modules. r=mak
File comments now consistently provide an overview instead of repeating the object comments. Redundant headers are removed together with other style changes, and mode lines are removed as they are only used by a small fraction of the JSM files in the tree.

MozReview-Commit-ID: 42fs7rT2BNM

--HG--
extra : source : 1ddfd4b28b7af650705fb45a02e70bf68b36ecd9
2017-07-24 12:16:01 +01:00
Marco Castelluccio 309ea6715b Bug 1384038 - Stop using preprocessor in DownloadIntegration.jsm. r=paolo
--HG--
extra : rebase_source : 26f808adcb415200125bac9dff726332c7077602
2017-07-26 01:10:27 +02:00
Nicholas Nethercote 20df43a549 Bug 1382099 - Remove MOZ_WIDGET_GONK from toolkit/. r=glandium.
--HG--
extra : rebase_source : 709744b24104b463c8dc4cbe215d2250e7c1a9f5
2017-07-19 18:38:48 +10:00
Paolo Amadini 137d61ddbb Bug 1381409 - Part 3 - Use DownloadList notifications directly in front-end download views. r=mak
The DownloadList object now provides batch notifications directly, in preparation for linking front-end views to other types of download lists without having to use the DownloadsData indirection.

MozReview-Commit-ID: FOTz1YwGRE1

--HG--
extra : rebase_source : df2d50d50c45a98e257caaa6efa9d0da2fa79237
extra : source : 278858e3d78b5e371f865adac043d07b770f1d3f
2017-07-17 12:05:12 +01:00
Florian Quèze 721c3ada5e Bug 1368456 - Remove imports of Promise.jsm from Firefox, r=mconley. 2017-06-23 11:25:18 +02:00
Florian Quèze c3a5e47cea Bug 1034599 - Convert remaining Promise.defer() uses to PromiseUtils.defer() or new Promise(), r=mconley. 2017-06-23 11:25:02 +02:00
Paolo Amadini 10ee6a5c4e Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P

--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070
2017-06-19 11:32:37 +01:00
Rajesh Kathiriya 6d3eb2c851 Bug 1370232 - Enabled the ESLint no-unneeded-ternary rule across mozilla-central. r=standard8
MozReview-Commit-ID: AH9ArRkjh78

--HG--
extra : rebase_source : bdd4c4f8a4779ea373479a9cba772c036e00e816
2017-06-13 00:23:54 +05:30
Mark Striemer f69d99cef4 Bug 1369771 - Confirm launch of executables other than .exe on Windows r=Paolo
MozReview-Commit-ID: 2TbLbdMc3d3

--HG--
extra : rebase_source : 9380ca04af2d9a9dbf1bedba558231897ed9ff4f
2017-05-29 16:38:54 -05:00
Christoph Kerschbaumer e4f38c8d7c Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
Paolo Amadini 5974d2958c Bug 1362384 - Remove code to import data from "downloads.sqlite". r=mak
When upgrading an old profile that still uses "downloads.sqlite", information about in-progress and paused downloads will be lost. The history of completed downloads will be preserved because it is stored in the Places database, although it may be affected by history expiration.

MozReview-Commit-ID: GFqvACKC4E1

--HG--
extra : source : 63d49c2d1fd68be15e295b90e9f0c98170158466
2017-05-15 10:48:04 +01:00
Florian Quèze 97f401c644 Bug 1362882 - script-generated patch to switch from Promise.defer() to new Promise() where it's straightforward, rs=Mossop. 2017-05-12 14:55:27 +02:00
Florian Quèze 1d0e28a791 Bug 1353542 - script-generated patch to remove .bind(this) calls we no longer need now that generator functions have been replaced with async functions, r=Mossop. 2017-05-12 14:47:41 +02:00
Florian Quèze 5e3539e504 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Florian Queze 4b1556a5f2 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Paolo Amadini 2c51c21228 Bug 1348062 - Test that channels are properly marked for downloads. r=mak
Downloads handled by nsIExternalHelperAppService pass a null request to the final onStateChange notification, thus we need to hold a reference to the request earlier. This also allows unit tests to access the request while the download is running.

MozReview-Commit-ID: 21rapDmMIZw

--HG--
extra : rebase_source : f1cd9a17e0e04f0ff9d9632528b3cee1149f4857
2017-04-19 10:42:00 +01:00
Honza Bambas 203c640be7 Bug 1348062 - Mark channels used for downloads as throttable, r=nick+paolo
MozReview-Commit-ID: 9cg4PwrXtNa

--HG--
extra : rebase_source : 2ff2d771a6ccb2a3e11c2d65e0a64ebbaa443206
2017-04-16 14:53:30 +01:00
Florian Queze f935ddc4b3 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00