Commit Graph

27 Commits

Author SHA1 Message Date
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
Asaf Romano
888a277a59 Bug 981689 (Show a notice to beta users when we turn telemetry on by default on the beta channel) - For the new channel-override preference, use UpdateChannel.jsm rather than nsIXULRuntime so that it's easier to QA the feature by hacking install.js. As part of that, add a new argument to UpdateChannel.js for excluding partners. r=bsmbedberg. 2014-04-28 17:04:51 +03:00
Ekanan Ketunuti
620410f94c Bug 828116 - Move modules in toolkit/content and toolkit/mozapps/shared to toolkit/modules. r=Mossop
--HG--
rename : toolkit/mozapps/shared/CertUtils.jsm => toolkit/modules/CertUtils.jsm
rename : toolkit/content/DeferredTask.jsm => toolkit/modules/DeferredTask.jsm
rename : toolkit/content/Deprecated.jsm => toolkit/modules/Deprecated.jsm
rename : toolkit/content/Dict.jsm => toolkit/modules/Dict.jsm
rename : toolkit/mozapps/shared/FileUtils.jsm => toolkit/modules/FileUtils.jsm
rename : toolkit/content/Geometry.jsm => toolkit/modules/Geometry.jsm
rename : toolkit/content/InlineSpellChecker.jsm => toolkit/modules/InlineSpellChecker.jsm
rename : toolkit/content/LightweightThemeConsumer.jsm => toolkit/modules/LightweightThemeConsumer.jsm
rename : toolkit/content/PageMenu.jsm => toolkit/modules/PageMenu.jsm
rename : toolkit/content/PopupNotifications.jsm => toolkit/modules/PopupNotifications.jsm
rename : toolkit/content/PrivateBrowsingUtils.jsm => toolkit/modules/PrivateBrowsingUtils.jsm
rename : toolkit/content/PropertyListUtils.jsm => toolkit/modules/PropertyListUtils.jsm
rename : toolkit/content/Services.jsm => toolkit/modules/Services.jsm
rename : toolkit/content/Task.jsm => toolkit/modules/Task.jsm
rename : toolkit/content/Troubleshoot.jsm => toolkit/modules/Troubleshoot.jsm
rename : toolkit/content/UpdateChannel.jsm => toolkit/modules/UpdateChannel.jsm
rename : toolkit/content/WindowDraggingUtils.jsm => toolkit/modules/WindowDraggingUtils.jsm
rename : toolkit/content/debug.js => toolkit/modules/debug.js
rename : toolkit/content/tests/browser/browser_DeferredTask.js => toolkit/modules/tests/browser/browser_DeferredTask.js
rename : toolkit/content/tests/browser/browser_Deprecated.js => toolkit/modules/tests/browser/browser_Deprecated.js
rename : toolkit/content/tests/browser/browser_Geometry.js => toolkit/modules/tests/browser/browser_Geometry.js
rename : toolkit/content/tests/browser/browser_InlineSpellChecker.js => toolkit/modules/tests/browser/browser_InlineSpellChecker.js
rename : toolkit/content/tests/browser/browser_Services.js => toolkit/modules/tests/browser/browser_Services.js
rename : toolkit/content/tests/browser/browser_Troubleshoot.js => toolkit/modules/tests/browser/browser_Troubleshoot.js
rename : toolkit/mozapps/shared/test/chrome/Makefile.in => toolkit/modules/tests/chrome/Makefile.in
rename : toolkit/mozapps/shared/test/chrome/moz.build => toolkit/modules/tests/chrome/moz.build
rename : toolkit/mozapps/shared/test/chrome/test_bug544442_checkCert.xul => toolkit/modules/tests/chrome/test_bug544442_checkCert.xul
rename : toolkit/content/tests/unit/propertyLists/bug710259_propertyListBinary.plist => toolkit/modules/tests/xpcshell/propertyLists/bug710259_propertyListBinary.plist
rename : toolkit/content/tests/unit/propertyLists/bug710259_propertyListXML.plist => toolkit/modules/tests/xpcshell/propertyLists/bug710259_propertyListXML.plist
rename : toolkit/mozapps/shared/test/unit/test_FileUtils.js => toolkit/modules/tests/xpcshell/test_FileUtils.js
rename : toolkit/content/tests/unit/test_dict.js => toolkit/modules/tests/xpcshell/test_dict.js
rename : toolkit/content/tests/unit/test_propertyListsUtils.js => toolkit/modules/tests/xpcshell/test_propertyListsUtils.js
rename : toolkit/mozapps/shared/test/unit/test_readCertPrefs.js => toolkit/modules/tests/xpcshell/test_readCertPrefs.js
rename : toolkit/content/tests/unit/test_task.js => toolkit/modules/tests/xpcshell/test_task.js
2013-05-14 14:37:18 -07:00
Dave Townsend
f1c830614d Bug 793928: Switch users of the promise library to the new location and move tests files. r=gavin
--HG--
rename : toolkit/addon-sdk/test/Makefile.in => addon-sdk/test/Makefile.in
rename : toolkit/addon-sdk/test/unit/head.js => addon-sdk/test/unit/head.js
rename : toolkit/addon-sdk/test/unit/test_promise.js => addon-sdk/test/unit/test_promise.js
rename : toolkit/addon-sdk/test/unit/xpcshell.ini => addon-sdk/test/unit/xpcshell.ini
2013-02-01 11:43:15 -08:00
Saurabh Anand
7aa6140e17 Bug 722995 - Part 1: Convert test_privatebrowsing_downloadLastDir.js, test_privatebrowsing_downloadLastDir_c.js, test_DownloadLastDir.js, and test_DownloadLastDirWithCPS.js to mochitest. r=ehsan 2012-07-21 11:20:24 +05:30
Abhishek Potnis
c0ce2d38da Bug 727967 - Support conversion from/to JSON in Dict.jsm. r=gavin 2012-10-10 21:55:38 +05:30
Paolo Amadini
7a4ca5c2b6 Bug 763311 - Implement basic "Task.js" interfaces in Toolkit. r=Mossop 2012-08-20 13:51:44 +02:00
Ryan VanderMeulen
dabaa78a3b Backout 53d053772879, e68d8406541e, 1a18d1d71ddf, 705c22e17976, 73f73097fb1a, and 8b28f53415fe (bug 722995) due to frequent linux32 mochitest-other orange. 2012-07-21 14:29:50 -04:00
Saurabh Anand
9853a7a9a1 Bug 722995 - Part 2: Convert test_privatebrowsing_downloadLastDir_c.js to mochitest, r=ehsan 2012-07-21 11:21:30 +05:30
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Dão Gottwald
50ad4b2ada Bug 720984 - contentAreaUtils.js: getTargetFile leaks gDownloadLastDir into the global scope. r=gavin 2012-01-26 13:09:45 +01:00
Asaf Romano
f83c1d2ec4 Reland Part 1 of Bug 710259 - Add a module for reading property list (plist) files (and add support for lazy-getters values in Dict.jsm). r=mak, sr=mossap for the new module. r=sid0 for the changes to Dict.jsm 2012-01-23 14:05:01 +02:00
Ed Morley
1b0a6be9dc Backout 5ad0ee32f855 (bug 710259) for build failures on all platforms 2012-01-22 22:08:18 +00:00
Asaf Romano
d0b02aeccb Part 1 of Bug 710259 - Add a module for reading property list (plist) files (and add support for lazy-getters values in Dict.jsm). r=mak, sr=mossap for the new module. r=sid0 for the changes to Dict.jsm 2012-01-22 23:49:20 +02:00
Rafael Ávila de Espíndola
e86b1ae807 Bug 713294 - send quit-application in test_privatebrowsing_downloadLastDir_c.js. r=mak. 2011-12-28 12:27:23 -05:00
Geoff Lankow
590a0ca6a5 Bug 702744 - Use do_get_profile() instead of CurProcD in test_privatebrowsing_downloadLastDir.js; r=gavin.sharp 2011-11-20 11:12:06 +13:00
Joel Maher
6993636556 Bug 616999. Xpcshell manifest support; manifest files. r=ted, a=test-only 2011-05-20 11:54:01 -04:00
Siddarth Agarwal
673dceb30b Bug 621204 - Add Dict.jsm to toolkit, r=dtownsend 2011-03-23 15:13:41 -04:00
Marco Bonardo
fa71af01e3 Bug 556231 - Tests are trying to QI to nsIDirectoryProvider, that does not exist. r=ted 2010-04-01 13:29:13 +02:00
Paolo Amadini
b4046efec1 Bug 475283 - Replace getStringBundle() with ContentAreaUtils.stringBundle. r=gavin
--HG--
extra : rebase_source : 887eab46d0104e2692fe74b631e6be2562efcb2c
2010-03-25 14:16:20 +01:00
Metal Sonic
4c1b34d634 Bug 507387 - fix copyright holder; Mozilla Corporation -> Mozilla Foundation. r=gerv. 2009-12-21 21:50:30 +00:00
Ehsan Akhgari
8494e4dfee Bug 526194 - r=vlad
--HG--
extra : rebase_source : 410c69341dab86377f94026709c3aa1f13c36a6d
2009-11-17 15:01:15 -05:00
Jae-Seong Lee-Russo
6e09b9e50a Toolkit tests that fail in js strict mode.
Bug 524781 - xpcshell-tests: turn on strict & werror by default.
r=benjamin.
2009-11-15 12:20:35 +01:00
Ehsan Akhgari
7c5a530f5e Bug 508526 - Make gDownloadLastDir smarter; r=mconnor 2009-08-25 13:52:43 +04:30
Ehsan Akhgari
e59c47a95e Bug 464795 - Persist "save as" directory during private browsing, but restore previous value after (tests); r=gavin 2009-04-23 20:00:25 +04:30
Callek@gmail.com
e679feeb0e Bug 422872, fix test in test_contentAreaUtils.js for both suite and toolkit. r=sayrer 2008-03-13 22:46:45 -07:00
hg@mozilla.com
465265d0d4 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00