Commit Graph

28 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
Paolo Amadini
c94a8fba8e Bug 984872 - Remove deprecated promise.js usage in Firefox for Desktop. r=mak 2014-03-20 22:21:05 +01:00
Mark Hammond
ab7ed7bfc4 Bug 566746 - various fixes to sanitize(). r=mak 2013-05-09 09:08:07 +10:00
Gavin Sharp
763124291c Re-land patches from bug 566746 and bug 697377 now that bug 851641 is addressed 2013-04-19 15:21:30 -07:00
Ryan VanderMeulen
9b3a4e3071 Backed out changeset 555f2b757639 (bug 566746, bug 697377) for intermittent Win7 mochitest b-c orange. 2013-05-02 21:20:08 -04:00
Gavin Sharp
52927e0751 Re-land patches from bug 566746 and bug 697377 now that bug 851641 is addressed 2013-04-19 15:21:30 -07:00
Ryan VanderMeulen
e0ba069546 Backed out 17 changesets (bug 566746, bug 697377) for frequent OSX debug mochitest-5 crashes. 2013-04-11 11:53:13 -04:00
Felix Fung
18ba3b2bb9 Bug 566746 - Use Asynchronous FormHistory.jsm for sanitize.js, p=enndeakin,felix, r=mak 2011-12-17 01:31:50 -08:00
Trevor Saunders
5756f6755f bug 407956 - make nsITreeView not take a nsISupportsArray* r=neil, bz sr=neil 2013-01-06 19:54:42 -05:00
Ehsan Akhgari
45fe6d3ae2 Bug 722872 - Part 1: Add nsITransferable::Init(nsILoadContext*), enforce that it's called in debug builds, and add nsIDOMDocument* arguments to nsIClipboardHelper methods; r=roc
This patch does the following:

* It adds nsITransferable::Init(nsILoadContext*).  The load context
  might be null, which means that the transferable is non-private, but
  if it's non-null, we extract the boolean value for the privacy mode
  and store it in the transferable.
* It adds checks in debug builds to make sure that Init is always
  called, in form of fatal assertions.
* It adds nsIDOMDocument* agruments to nsIClipboardHelper methods which
  represent the document that the string is coming from.
  nsIClipboardHelper implementation internally gets the nsILoadContext
  from that and passes it on to the transferable upon creation.  The
  reason that I did this was that nsIClipboardHelper is supposed to be a
  high-level helper, and in most of its call sites, we have easy access
  to a document object.
* It modifies all of the call sites of the above interfaces according to
  this change.
* It adds a GetLoadContext helper to nsIDocument to help with changing
  the call sites.
2012-04-16 22:14:01 -04:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Felix Fung
6a18deb397 Bug 497664: Clear History's Disabled Preferences Should Not Be Checked. r=ehsan 2011-09-21 21:08:58 -07:00
Asaf Romano
fd118435f9 Bug 543444 - Replace single-view API with multiple observers. r=mak sr=rstrong 2010-03-12 12:14:47 +01:00
Marco Bonardo
aa09cf6372 backout bug 543444 due to leaks 2010-03-09 17:23:32 +01:00
Asaf Romano
e7acf94dc2 Bug 543444 - Replace single-view API with multiple observers. r=mak sr=rstrong 2010-03-09 14:43:09 +01:00
Robert O'Callahan
f4de62cffe Backed out changeset 79f299fc10d6 2010-03-05 20:10:20 +13:00
Asaf Romano
6598acf4f4 Relanding bug 543444 - Replace single-view API with multiple observers. r=mak. sr=rstrong. 2010-03-04 13:23:41 -08:00
Asaf Romano
8a462d5e47 Backing out bug 543444 due to orange. 2010-03-03 17:23:51 -08:00
Asaf Romano
c9e79d3dc6 Bug 543444 - Replace single-view API with multiple observers. r=mak, sr=rstrong. 2010-03-03 14:45:16 -08:00
Ehsan Akhgari
007f03eb8b Bug 535603 - Clear recent history title not set to all correctly on opening window; r=dao 2009-12-18 13:26:06 -05:00
Ehsan Akhgari
40348234c6 Bug 527820 - Checking all prefs except "Site Preferences" shows confusing UI; r=dao ui-r=beltzner a=blocking-firefox3.6+
--HG--
extra : rebase_source : 661c6a6c0d4a74e478cf8b476e65723a1654c54f
2009-11-17 14:49:59 -05:00
Ehsan Akhgari
264e286dc6 Fix unit test failure for changeset aaa39ba5d852 2009-09-15 17:01:30 +04:30
Ehsan Akhgari
88405de0e3 Bug 488691 - Confusing warning when clearing all history; r=dao 2009-09-15 14:36:34 +04:30
Ehsan Akhgari
17bfc90e36 Bug 488706: Migrate clear private data settings. r=mconnor 2009-05-21 10:51:56 +01:00
Drew Willcoxon
f91a54288d Bug 493559 - The 'Clear Recent History' dialog can be too slow when Everything is selected; r=johnath 2009-05-19 19:31:42 +04:30
Drew Willcoxon
4108ca18d0 Bug 491638 - Clear recent history dialog should persist details expansion, r=johnath 2009-05-15 09:42:08 -07:00
Dão Gottwald
3dda3d388a Bug 490030 - privacy.cpd.history should overrule privacy.cpd.downloads in the Clear Recent History dialog. r=johnath 2009-05-14 00:42:07 +02:00
Drew Willcoxon
410dd5c0a6 Bug 480169 - Clear recent history refresh (sprint)
Item list hidden behind expander/progressive disclosure button, added a warning when clearing all history, added a tree view for selecting a fine-grained timespan.  We decided to remove the tree view at the last minute; code is still there but #ifdef'ed out.
r=mconnor
2009-04-15 10:59:07 -07:00