Commit graph

12 commits

Author SHA1 Message Date
Jared Wein
87b2d4c295 Bug 1315013 - part 1, remove unnecessary double-slash comments that don't add value and look out of place with the spaced-comment eslint rule. r=mossop
MozReview-Commit-ID: HIUTSdkXxbY

--HG--
extra : rebase_source : 2f05e2f275ac7f293f9c650bdec8943189e3ce01
2016-11-03 14:42:06 -04:00
Jared Wein
5040f17e00 Bug 1312486 - Enable no-extra-boolean-cast, no-new-object, no-shadow-restricted-names, and spaced-comment rules for eslint. r=standard8
MozReview-Commit-ID: 7Gx90a5y8t6

--HG--
extra : rebase_source : 9c8a6b15c19982d720b0163fbbf19d465da786fe
2016-10-24 13:14:19 -04:00
Mrinal Dhar
9c6bcee540 Bug 1113736 - Remove tail.js and add cleanup function call in head.js. r=paolo
--HG--
extra : commitid : KnJulAaqtPN
extra : rebase_source : b3e28bc8b0154751e94a88492207023b17b2064d
extra : amend_source : 120d225f23e4c88c3e6fcd02df42aa3e381b5b9e
2015-12-28 15:05:13 +00:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Jim Blandy
7e20285e70 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
4773b3505a 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
eb597b3e07 Bug 836437 - Part 1 of 3 - Unify DownloadLegacy tests in preparation for resuming support. r=enn
--HG--
rename : toolkit/components/jsdownloads/test/unit/test_DownloadCore.js => toolkit/components/jsdownloads/test/unit/common_test_Download.js
2013-07-26 15:30:40 +02:00
Paolo Amadini
38e7ec52c3 Bug 851454 - Define the format of "downloads.json" and of the parameters of createDownload. r=enn 2013-07-26 15:30:35 +02:00
Raymond Lee
cf75dcd7a1 Bug 852599 - Block downloads when they are disallowed globally by the parental control service. r=paolo 2013-06-29 03:49:31 +08:00
Raymond Lee
880c93552b Bug 836439 - Handle downloads started in private browsing mode. r=paolo 2013-05-22 20:14:07 +08:00
Paolo Amadini
d54af1672c Bug 851461 - Make the JavaScript API for downloads available in parallel to nsIDownloadManager. r=mak 2013-04-22 04:23:25 +02:00
Paolo Amadini
3190692d7f Bug 847191 - Integration with legacy interfaces to start new downloads. r=enn 2013-04-22 04:23:21 +02:00