Commit Graph

143 Commits

Author SHA1 Message Date
Gregory Szorc
54c4d3b9ae Bug 1033836 - Convert TESTING_JS_MODULES to moz.build; r=glandium
--HG--
extra : rebase_source : 1cd9e402c507260358af7a93c6fb2fc91c24994b
2014-07-02 16:43:41 -07:00
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
Gregory Szorc
158ed8b3ec Bug 774572 - Part 2: Define JAR_MANIFESTS in moz.build files; r=glandium
Every directory with a jar.mn now has JAR_MANIFESTS defined in its
moz.build file.

We also removed the may_skip special consideration of jar.mn files
because this information is now available during tier traversal by the
reader courtesy of the variables being present in moz.build files.

--HG--
extra : rebase_source : 21049b15e6bd9cf65b0805ccaccc4ba5aae93c98
extra : amend_source : 0b1ea866d725beef92d37c6f6d475369ac002e19
2013-12-10 16:18:11 +09:00
Mike Hommey
9fe772e7fd Bug 939044 - Rename remaining MODULE definitions to XPIDL_MODULE. r=mshal 2013-11-19 11:47:43 +09:00
Bill McCloskey
473c1281ec Bug 924259 - Fix error message when httpd.js is already running (r=Waldo) 2013-10-10 10:52:12 -07:00
Patrick McManus
fedb99f62e bug 777354 - make httpd.js shutdown quickly with idle never used sockets r=jduell 2013-10-10 01:28:52 -04:00
Gregory Szorc
ed68c2482b Bug 901990 - Part 2: Upgrade xpcshell manifests; r=ted
--HG--
rename : toolkit/mozapps/extensions/test/xpcshell-unpack/head_unpack.js => toolkit/mozapps/extensions/test/xpcshell/head_unpack.js
2013-09-24 11:50:08 -07:00
Mike Hommey
f1cf3b4238 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Geoff Brown
edcf1d4004 Bug 905344 - Change server port to -1 in test_load_module.js; r=waldo 2013-08-23 09:11:34 -06:00
Joey Armstrong
9bdf289b5e Bug 870370 - Move EXTRA_COMPONENTS to mozbuild (file batch #3); r=mshal 2013-06-11 16:38:22 -04:00
Gregory Szorc
b9743fb2cc Bug 896093 - Reference proper variable when blocked port is used; r=trivial 2013-07-23 13:53:01 -07:00
Gregory Szorc
33855660d6 Bug 895542 - Only automatically select ports that aren't blocked from clients; r=Waldo 2013-07-19 10:30:06 -07:00
Mihnea Dobrescu-Balaur
67669b264e Bug 887706 - Use a dynamic port in httpserver xpcshell tests so they can be run in parallel. r=Waldo 2013-07-17 09:11:19 -04:00
Bobby Holley
1a78a5f7db Bug 880917 - Add support for "latest" as a version to evalInSandbox, and use it for sjs files. r=luke
Sandboxes always default to JSVERSION_DEFAULT in the browser. But XPCShell sets
up a ContextCallback that does JS_SetVersion(cx, JSVERSION_LATEST) on every
context that gets created, including the ephemerial Sandbox JSContexts. Since
httpd.js runs in xpcshell and evaluates SJS in a sandbox, we've (somewhat
accidentally) supported JSVERSION_LATEST in SJS, which certain SJS files have
taken advantage of. Let's continue to support it explicitly.
2013-06-29 09:11:18 -06:00
Nathan Froyd
56bff3cb5e Bug 883981 - correctly reflect the server's port in httpd.js; r=ted 2013-06-17 14:58:56 -04:00
Steve Workman
d437dad211 Bug 497003 - Adjust partial content test and revert httpd.js r=jduell 2013-06-14 19:34:17 -07:00
Ryan VanderMeulen
3446362831 Backed out 13 changesets (bug 880917) for Android and B2G test bustage on a CLOSED TREE.
Backed out changeset 71c1ce2cb0a4 (bug 880917)
Backed out changeset cd240e19560f (bug 880917)
Backed out changeset 93509a0001b5 (bug 880917)
Backed out changeset fdbba20e4647 (bug 880917)
Backed out changeset d82060172367 (bug 880917)
Backed out changeset 709f0b699489 (bug 880917)
Backed out changeset 421bdbccfa7c (bug 880917)
Backed out changeset 962c656c7452 (bug 880917)
Backed out changeset 888a5690ccdf (bug 880917)
Backed out changeset 57228f5fcd87 (bug 880917)
Backed out changeset ce8c3e14c234 (bug 880917)
Backed out changeset 08fe7b777450 (bug 880917)
Backed out changeset 5192a9233d83 (bug 880917)
2013-06-13 15:19:50 -04:00
Steve Workman
16ffe38f80 Bug 497003 - Support delivery of OnDataAvailable off the main thread r=bz r=jduell 2013-06-13 10:42:48 -07:00
Bobby Holley
880637c2cd Bug 880917 - Add support for "latest" as a version to evalInSandbox, and use it for sjs files. r=luke
Sandboxes always default to JSVERSION_DEFAULT in the browser. But XPCShell sets
up a ContextCallback that does JS_SetVersion(cx, JSVERSION_LATEST) on every
context that gets created, including the ephemerial Sandbox JSContexts. Since
httpd.js runs in xpcshell and evaluates SJS in a sandbox, we've (somewhat
accidentally) supported JSVERSION_LATEST in SJS, which certain SJS files have
taken advantage of. Let's continue to support it explicitly.
2013-06-13 10:09:26 -07:00
Joey Armstrong
2dbf79e9a4 bug 869143: phase2 cleanup for XPCSHELL_TEST conversion. r=mshal 2013-05-13 16:24:07 -04:00
Joey Armstrong
8e99512c32 bug 844655: Port XPCSHELL_TESTS to moz.build as XPCSHELL_TESTS_MANIFESTS 2013-04-29 14:49:00 -04:00
Kyle Machulis
5aa83c3e11 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693 Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Mike Shal
9680b82df6 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Gregory Szorc
7bb3ee056b Bug 818246 - Part 4: Move XPIDLSRCS into moz.build (auto); rs=glandium
This is the result of running
|mach mozbuild-migrate --list XPIDLSRCS SDK_XPIDLSRCS XPIDL_SOURCES| and
reverting xpcom/sample/*.
2013-03-12 10:17:46 -07:00
Tim Taubert
b8c5caeb70 Bug 842512 - Specify a character set for error pages; r=Waldo 2013-02-22 19:56:26 +01:00
Gregory Szorc
660d1983d3 Bug 784841 - Part 18z: Convert /netwerk; f=Ms2ger rs=ted 2013-02-25 12:47:23 -08:00
Tim Taubert
2328ef1751 Backed out changeset 7052d37a8b25 (bug 842512) 2013-02-22 22:23:27 +01:00
Tim Taubert
4a2b4cda74 Backed out changeset 96d8ca0dd540 (bug 842511) 2013-02-22 22:23:25 +01:00
Tim Taubert
44139238e8 Bug 842511 - Fix xpcshell bustage; r=me 2013-02-22 21:17:44 +01:00
Tim Taubert
b961fe94c2 Bug 842512 - Specify a character set for error pages; r=Waldo 2013-02-22 19:56:26 +01:00
Seth Fowler
011f61e657 (no bug) Remove debugging cruft that snuck into the tree which prints 'httpserver XPI_NAME=' when we build. r=bsmedberg 2012-11-15 13:12:23 -08:00
Gregory Szorc
4c48f87da0 Bug 809677 - Refactor httpd.js to work when modules are functions; r=Waldo 2012-11-09 14:48:28 -08:00
Kyle Huey
1482122303 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Vicamo Yang
8297cdabd6 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey
bdf47895bb Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
777eed8444 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
aa1997a51a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Jeff Walden
1c08b086eb Bug 532369 - Replace octal numbers in httpd.js with manual bit-shifts and bit-ors, to avoid strict warnings. Obvious enough for r=try
--HG--
extra : rebase_source : d110239cac4967d7bd278c3c931f10fe78229860
2012-10-05 17:04:12 -07:00
L. David Baron
25da45cb30 Followup to bug 648603: increase the number of connections that our test HTTP server will serve to the larger of the server limit or the proxy limit.
This should fix intermittent oranges in bug 536603 and bug 576543 that
were reintroduced this morning.

This is needed because the mochitest HTTP server is accessed as a proxy;
we set network.proxy.autoconfig_url to a data: URL.
2012-09-05 22:43:21 -07:00
Mark Capella
c33263eef6 Bug 772272 - Remove do_load_httpd_js from xpcshell tests, Final, r=ted
Remove last three references, final cleanup
2012-08-23 08:16:44 -04:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Patrick McManus
4c858109e4 bug 770331 - always try and negotiate HTTP Keep-Alive r=biesi
--HG--
extra : rebase_source : d348e3ec56faa48fbed5c4f0f697dee6658e21b2
2012-07-20 08:40:13 -04:00
Gregory Szorc
f85dc8cb5b Bug 755196 - Allow httpd.js to be loaded as a testing module; r=mcmanus 2012-06-29 13:28:04 -07:00
Boris Zbarsky
b080cc3a18 Bug 558220 part 2. Fix a bug in the test HTTP header that caused it to misread headers when a packet boundary fell between the CR and LF at the end of a header value. r=waldo 2012-06-28 00:26:13 -04:00
Boris Zbarsky
6a3462cdd6 Bug 558220 part 1. Add more debugging spew to the test HTTP server. r=waldo 2012-06-28 00:26:12 -04:00
Geoff Lankow
00f3a215c9 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Mook
043178ccfc Bug 485255 - Add path prefix handler to nsIHttpServer; r=biesi 2009-03-25 15:08:18 -07:00