Andrew McCreight
cb4467a845
Bug 1186409 - Fix code that tries to get the global by using |this|. r=kmag
...
MozReview-Commit-ID: C5ixngtvzWU
2017-05-25 14:12:12 -07:00
Masatoshi Kimura
0af76969af
Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
...
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.
MozReview-Commit-ID: 4ecl3RZhOwC
2017-08-04 17:49:22 +09:00
Masatoshi Kimura
c0943e4f30
Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
...
MozReview-Commit-ID: DqJdTGopR9G
2017-07-29 20:50:21 +09:00
Evelyn Hung
e8c4867b3b
Bug 1348275 - speculative connect to an autocomplete url. r=mak
...
When we get the usre's frequent visting site from UnifiedComplete.js,
and then open a network connection for it before the user hits
the enter key.
MozReview-Commit-ID: 36moBeeUnyZ
2017-06-26 00:24:42 +08:00
Wes Kocher
09cc7eca3a
Backed out 3 changesets (bug 469228) for being a possible cause of frequent test_animSVGImage.html failures a=backout
...
Backed out changeset 1431c80b02ef (bug 469228)
Backed out changeset 8d46046a7367 (bug 469228)
Backed out changeset 2e22c0308a7e (bug 469228)
MozReview-Commit-ID: AMRASDPCWu3
2017-05-10 10:13:54 -07:00
Kershaw Chang
4c06a5ae5e
Bug 469228 - Part1: Support keep-alive, r=Waldo
2017-05-10 03:48:00 +02:00
Brendan Dahl
ab4dcbce47
Bug 1353937 - Expose http server wrapped js object for private apis. r=mcmanus
...
Slimerjs relies on the hidden _start to create a server with a
port and host.
2017-04-07 09:18:33 -07:00
Sebastian Hengst
b64ffd69f6
Bug 1336311 - Change code comments with http://hg.mozilla.org to https://. r=gps
...
For components also referencing it in code, see the blockers of bug 1336311.
MozReview-Commit-ID: 4tUZ24HKBWy
2017-02-07 17:52:56 +01:00
Florian Quèze
6459975a67
Bug 1329182 - remove trailing newURI null parameters in the rest of the tree, r=jaws.
2017-01-09 20:27:26 +01:00
Dragana Damjanovic
77712d265b
Bug 669259 - Expose original header received from a peer. r=mcmanus
2016-05-12 14:33:00 -04:00
Ted Clancy
9c7912fcf0
Bug 1000305 - part 3: Add atob() and btoa() to server-side java Sandbox. r=waldo
2014-12-20 17:35:40 -05:00
Carsten "Tomcat" Book
dc78f949a2
Backed out changeset 8450d74f782e (bug 1000305) for j1 test failures
2014-12-23 11:41:28 +01:00
Ted Clancy
04d3a316dd
Bug 1000305 - part 3: Add atob() and btoa() to server-side java Sandbox. r=waldo
2014-12-20 17:35:40 -05:00
Richard Newman
730f7d2a4c
Bug 1071785 - Fix strict mode error in httpd.js. r=trivial
2014-10-01 18:09:42 -07:00
Jim Blandy
39dc0c6097
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
Bill McCloskey
702b2203c0
Bug 924259 - Fix error message when httpd.js is already running (r=Waldo)
2013-10-10 10:52:12 -07:00
Patrick McManus
33df990f7a
bug 777354 - make httpd.js shutdown quickly with idle never used sockets r=jduell
2013-10-10 01:28:52 -04:00
Gregory Szorc
a3b2da12d3
Bug 896093 - Reference proper variable when blocked port is used; r=trivial
2013-07-23 13:53:01 -07:00
Gregory Szorc
2f74c3902a
Bug 895542 - Only automatically select ports that aren't blocked from clients; r=Waldo
2013-07-19 10:30:06 -07:00
Bobby Holley
83b1a1e25e
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
dc2172d046
Bug 883981 - correctly reflect the server's port in httpd.js; r=ted
2013-06-17 14:58:56 -04:00
Steve Workman
d3772ac0d8
Bug 497003 - Adjust partial content test and revert httpd.js r=jduell
2013-06-14 19:34:17 -07:00
Ryan VanderMeulen
91f11ca06e
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
b9586263c8
Bug 497003 - Support delivery of OnDataAvailable off the main thread r=bz r=jduell
2013-06-13 10:42:48 -07:00
Bobby Holley
ba1d192627
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
Tim Taubert
fdf7dc509d
Bug 842512 - Specify a character set for error pages; r=Waldo
2013-02-22 19:56:26 +01:00
Tim Taubert
f318f2e990
Backed out changeset 7052d37a8b25 (bug 842512)
2013-02-22 22:23:27 +01:00
Tim Taubert
c127a042e1
Bug 842512 - Specify a character set for error pages; r=Waldo
2013-02-22 19:56:26 +01:00
Gregory Szorc
dff4f3ed61
Bug 809677 - Refactor httpd.js to work when modules are functions; r=Waldo
2012-11-09 14:48:28 -08:00
Kyle Huey
76a2832eea
Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
2012-10-31 09:13:28 -07:00
Vicamo Yang
ea784216bd
Backout 67cb43bb8865: Breaks B2G Marionette
2012-10-31 16:35:11 +08:00
Kyle Huey
c82a2d6fea
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
c34b7d9377
Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE
2012-10-30 17:02:31 +00:00
Kyle Huey
8078ab712e
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
6978cbdbdd
Bug 532369 - Replace octal numbers in httpd.js with manual bit-shifts and bit-ors, to avoid strict warnings. Obvious enough for r=try
2012-10-05 17:04:12 -07:00
L. David Baron
fea6b8f61b
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
Patrick McManus
4a23d4fa91
bug 770331 - always try and negotiate HTTP Keep-Alive r=biesi
2012-07-20 08:40:13 -04:00
Gregory Szorc
b6ae20d0a6
Bug 755196 - Allow httpd.js to be loaded as a testing module; r=mcmanus
2012-06-29 13:28:04 -07:00
Boris Zbarsky
8bcf0a905d
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
38c9839427
Bug 558220 part 1. Add more debugging spew to the test HTTP server. r=waldo
2012-06-28 00:26:12 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Mook
c00d2c9eee
Bug 485255 - Add path prefix handler to nsIHttpServer; r=biesi
2009-03-25 15:08:18 -07:00
Jeff Walden
ab9efdce04
Bug 568663 - Always append bytes to arrays using increments guaranteed to be substantially below the maximum function argument count. r=honzab
2011-07-25 15:25:38 -07:00
Chris Pearce
54972b5237
Bug 508128 - add gc() in httpd.js, reduces memory by 1GB in xpcshell.exe during mochitest run. r=jwalden
2009-08-04 16:55:00 -04:00
Edward Lee
ea791bc27a
Bug 589016 - Allow registering path handlers from mochitests [r=waldo a=npotb]
...
Export the registerPathHandler for use from .sjs.
2010-08-31 23:49:43 -07:00
Benjamin Smedberg
1c52097d6a
Fix review comments from bug 568691 comment 45.
2010-06-24 11:56:28 -04:00
Benjamin Smedberg
ab0b38f453
Fix syntax error in httpd.js
2010-06-22 16:22:33 -04:00
Benjamin Smedberg
4eb44d9d34
Bug 568691 - Convert existing JS components to use NSGetFactory and add manifest files for them. In a followup we will link the .manifest files together at packaging time. This patch was developed on Linux: Windows and Mac may require additional changes.
2010-06-22 12:59:15 -04:00
Michael Kohler
e4abd093dc
Bug 564091: Fix spelling of nonexistent across the tree. r=timeless
2010-05-23 12:26:15 -07:00
Jeff Walden
5bce5d27e8
Bug 513854 - httpd.js should write its response data asynchronously. r=sayrer
2009-09-29 19:54:34 -07:00