Commit Graph

108 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
Mike de Boer
d38afae1dd Bug 326743: support find-selection in view-source component. r=Unfocused 2014-02-28 16:07:37 +01:00
Neil Rashbrook
8ef08c88a8 Bug 956657 Followup tweak r=Unfocused 2014-02-25 00:19:36 +00:00
Neil Rashbrook
5b235abc21 Bug 956657 Share more charset menu code between the view source window and the browser r=Unfocused
--HG--
extra : rebase_source : 7fd31cfc4b8eefee38fa06e63351cc207a9208db
2014-02-23 18:28:04 +00:00
Ryan VanderMeulen
3fd1b8a158 Backed out 3 changesets (bug 956657, bug 974824, bug 974258) for mochitest-other failures on a CLOSED TREE.
Backed out changeset 792ce962cad6 (bug 956657)
Backed out changeset a1574a6b0544 (bug 974824)
Backed out changeset ad851c771c04 (bug 974258)
2014-02-21 15:28:43 -05:00
Neil Rashbrook
6d31f2f597 Bug 956657 Share more charset menu code between the view source window and the browser r=Unfocused
--HG--
extra : rebase_source : 6fd5f6565b6dd0c07db0d530ffa01311d6e6d643
2014-02-21 00:17:13 +00:00
James Kitchener
718ccd33dd Bug 464222 - Get relative links to resolve in parser view selection. r=dolske 2014-02-20 08:43:54 -05:00
Phil Ringnalda
bb47d34a53 Back out 024e6835e6ea:bece94ce2310 (bug 326743) for frequent 10.6 debug failures in browser_bug537013.js 2014-02-14 23:58:49 -08:00
Mike de Boer
b0a8ac819b Bug 326743: support find-selection in view-source component. r=Unfocused 2014-02-14 14:04:25 +01:00
Mike de Boer
4ce1a976c3 Backed out 5 changesets (bug 326743)
Backed out changeset 55fba7bccaaf (bug 326743)
Backed out changeset f4ab79254dfb (bug 326743)
Backed out changeset c8151192e447 (bug 326743)
Backed out changeset 57ceb72568c6 (bug 326743)
Backed out changeset 3081b9770c33 (bug 326743)
2014-02-14 12:55:13 +01:00
Mike de Boer
9e63f897f7 Bug 326743: support find-selection in view-source component. r=Unfocused 2014-02-14 11:38:26 +01:00
Henri Sivonen
750178f54e Bug 959061 - Have only one "Chinese, Simplified" item in the Character Encoding menu. r=Unfocused. 2014-01-30 14:39:25 +02:00
Gijs Kruitbosch
0f268638e2 Bug 936442 - part 1: refactor CharsetMenu to allow Australis code to use it, r=Unfocused 2014-01-27 11:56:04 +00:00
Neil Rashbrook
78bfb85ad5 Bug 940907 Re-introduce the Character Encoding menu to the View Source window r=Unfocused
--HG--
rename : browser/locales/en-US/chrome/browser/charsetMenu.dtd => toolkit/locales/en-US/chrome/global/charsetMenu.dtd
rename : browser/locales/en-US/chrome/browser/charsetMenu.properties => toolkit/locales/en-US/chrome/global/charsetMenu.properties
rename : browser/modules/CharsetMenu.jsm => toolkit/modules/CharsetMenu.jsm
2014-01-06 08:44:19 +00:00
Jared Wein
90703a90cc Bug 926487 - Replace className comparisons with classList.contains in viewSource.js. r=Unfocused
--HG--
extra : rebase_source : 1e5a9b55e2c455b08454e8bd17afe4412f42a042
2013-12-12 18:14:25 -05:00
Henri Sivonen
efd91c19ff Bug 805374 - Clean up the Character Encoding menu. r=Gijs,Unfocused. 2013-11-26 09:31:52 +02:00
Henri Sivonen
48fc98ecfc Bug 871161 - Stop inheriting charset where other browsers do not inherit it. r=bzbarsky. 2013-10-16 04:46:10 +03:00
Gavin Sharp
8086bb9e1f Bug 922338: update link to phishing protection info in Firefox, r=dao,wesj,mbrubeck,fabrice 2013-10-08 14:00:48 -07:00
Mike de Boer
f89b910de3 Backed out 3 changesets (bug 893446, bug 893011, bug 869543)
Backed out changeset 452ca8b779f3 (bug 893446)
Backed out changeset e1bf70be67ec (bug 893011)
Backed out changeset 60865db5f5dc (bug 869543)
2013-09-13 11:01:40 +02:00
Ryan VanderMeulen
10beb8d9ff Backed out changeset 6dcc6fc612e4 (bug 914180) for it was intended for Aurora only. 2013-09-13 14:53:00 -04:00
Mike de Boer
3ebef773ae Bug 914180 - Backout moving findbar to the top. r=dao
Backs out changeset 452ca8b779f3 (bug 893446), changeset e1bf70be67ec (bug 893011), and changeset 60865db5f5dc (bug 869543).
2013-09-13 11:01:40 +02:00
Mike de Boer
d4baa641c6 Bug 869543: move findbar to the top. r=dao 2013-07-11 12:44:34 +02:00
Boris Zbarsky
425b25741d Bug 792215. Convert quickstubs to using JSNative getters and setters. r=peterv 2012-09-25 14:44:40 -04:00
Neil Deakin
9b1635e32c Bug 480356, move content page tooltip text generation code into tooltip binding so that it can be shared, r=neil,mratcliffe 2013-03-21 08:58:07 -04:00
Boris Zbarsky
e4b4da3503 Bug 838518 part 1. Fix treewalker callers per the API change that was made. r=smaug 2013-02-06 14:22:33 +00:00
Scott Johnson
29411d3842 Bug 812372: Rename DocumentViewerImpl to nsDocumentViewer for consistency. [r=ehsan] 2012-11-28 18:26:39 -06:00
Ehsan Akhgari
0d8a5d70eb Bug 815001 - Pass in the privacy information for the view sourced document to the web browser persist service when using an external view source program; r=jdm 2012-11-26 13:08:00 -05:00
Neil Rashbrook
4669a01506 Bug 803661 Can't save files from the view source window r=jdm 2012-10-20 00:37:35 +01:00
Josh Matthews
f8bc15a806 Bug 795065 - Add privacy status to nsDownload. r=mak sr=bz 2012-10-03 13:10:20 -04:00
Masayuki Nakano
1e2c3a60d4 Bug 789852 Use getComplexValue() with nsIFile for view_source.editor.path, which supports unicode path r=gavin 2012-09-11 17:20:06 +09:00
Ehsan Akhgari
e7ff56366a Bug 722868 - Part 4: Make the view source window aware of the deleteTemporaryPrivateFileWhenPossible API; r=Mossop 2012-04-24 23:14:16 -04:00
Ed Morley
a82421537c Backout a6175c97f365, 3ceeeaf0519f, bde34cebdcdc, 66dfa9606626, 86762d8c4de9, 717f908c990a, aa83d71fe7ee (bug 722868) for compilation failures 2012-06-28 19:00:30 +01:00
Ehsan Akhgari
5259bfd587 Bug 722868 - Part 4: Make the view source window aware of the deleteTemporaryPrivateFileWhenPossible API; r=Mossop 2012-04-24 23:14:16 -04: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
Neil Rashbrook
0c34361ca7 Bug 758354 Stop unnecessarily preprocessing chrome r=dolske 2012-06-26 00:11:16 +01:00
Ed Morley
58e896dd49 Backout ec9451e9e830 (bug 758354) for PGO linux permaorange in browser_bug422590.js and friends 2012-06-25 19:14:43 +01:00
Neil Rashbrook
7e7b835fdc Bug 758354 Stop unnecessarily preprocessing chrome r=dolske 2012-06-25 09:24:49 +01:00
Ian Neal
8121ad3ea5 Bug 756784 - Make file menu popup more consistent and easier to overlay r=gavin 2012-06-17 16:40:30 +01:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Neil Rashbrook
e51e8007e8 Bug 738589 Avoid JavaScript strict warning by not explicitly passing the default value in r=gavin 2012-04-02 00:02:01 +01:00
aceman
b6293e05e9 Bug 738568 - remove Services.prefs.getBranch(null) occurences. r=gavin 2012-03-29 11:48:40 +02:00
Phil Ringnalda
6e9250f387 Back out 0cb85ff0f764 (bug 738568), 9949bb092303 (bug 730209), 095fd525afa7 (bug 729924), dcf8929a8115 (bug 633602) because of widely scattered and unclear bustage on a CLOSED TREE 2012-03-28 22:37:46 -07:00
aceman
5506b28ad7 Bug 738568 - Remove Services.prefs.getBranch(null) occurences in Toolkit. r=gavin 2012-03-28 21:00:14 -04:00
Gavin Sharp
69d8ffac0e backout 110452fddc2a (bug 738568) since it broke viewsource 2012-03-27 18:06:10 -07:00
aceman
0b394e2937 Bug 738568 - Remove Services.prefs.getBranch(null) occurences in Toolkit. r=gavin 2012-03-27 19:17:35 -04:00
Geoff Lankow
8d531a8d9b Bug 469434 - Links in "view source" should have "copy link location" in context menu; r=dao 2012-02-19 22:47:06 +13:00
Phil Ringnalda
18c63067ed Back out 3d8fc342348b (bug 469434) for browser_contextmenu.js timeouts 2012-02-22 22:11:48 -08:00
Geoff Lankow
30543d19e0 Bug 469434 - Links in "view source" should have "copy link location" in context menu; r=dao 2012-02-19 22:47:06 +13:00
Simon Montagu
a7648e1a49 Rename BrowserSetForcedDetector and remove unnecessary parameter. Bug 720310, r=gavin 2012-01-24 11:52:05 +02:00
Simon Montagu
6d25747926 Remove unused forcedDetector property. Bug 713825, r=bz 2012-01-24 11:52:05 +02:00