Commit graph

47 commits

Author SHA1 Message Date
Ms2ger
a14bb68c3f Remove some Cells for immutable members. 2014-07-15 15:33:57 +02:00
Ms2ger
f963ed99ac Rename variables that refer to global objects.
This clarifies whether those variables will point to a Window object or an
arbitrary global object.

Note in particular that all IDL Constructors will accept an arbitrary global
object.
2014-07-15 15:33:56 +02:00
Ms2ger
818eb864b3 Handle exceptions from JS_ParseJSON in XMLHttpRequest.response. 2014-07-13 12:00:30 +02:00
Manish Goregaokar
678dc10c4f Allow URLSearchParams to be passed to XHR Send() 2014-07-12 20:25:28 +05:30
Simon Sapin
0974d21bcd Merge pull request #2765 from Manishearth/xhr-wpt-encoding
Fix encoding issues for getResponseHeader()
2014-07-04 23:36:22 +01:00
Manish Goregaokar
3f15dc6c47 Fix encoding issues for getResponseHeader() 2014-07-05 02:20:04 +05:30
Manish Goregaokar
51f2dbd64d Fix wpt failure on responseType setter 2014-07-02 23:45:49 +05:30
Manish Goregaokar
17631ffcb8 Filter response headers 2014-07-02 23:45:48 +05:30
Manish Goregaokar
f5b5b337d3 Upgrade to latest Rust. 2014-06-27 18:50:32 -06:00
Tetsuharu OHZEKI
7c4200fc74 Use internal mutability for XMLHttpRequest. 2014-06-20 18:55:36 +09:00
Manish Goregaokar
f558f9aad0 Request termination for XHR 2014-06-19 22:37:33 +05:30
Ms2ger
bb0efdd5a2 Make some locals immutable. 2014-06-13 21:41:28 +02:00
bors-servo
7ed5041891 auto merge of #2649 : ebalint/servo/2580_JS_T_unrooted_replace, r=jdm
removed .clone() calls
modified from_rooted method parameter: T to &T
2014-06-13 14:33:03 -04:00
Ms2ger
e09ed14362 Remove Reflectable::mut_reflector. 2014-06-13 19:19:58 +02:00
Ms2ger
c331b200b1 Use Cell for Reflector::object. 2014-06-13 19:19:56 +02:00
Edit Balint
bda29ade09 Replace uses of JS<T>.unrooted() with JS::from_rooted #2580 2014-06-13 19:06:28 +02:00
Ms2ger
9acba1477c Use internal mutability for EventTarget. 2014-06-11 19:51:06 +02:00
Ms2ger
0b364d13b6 Use internal mutability for Event. 2014-06-11 19:51:06 +02:00
Manish Goregaokar
86594a752c Empty methods are not allowed 2014-06-08 21:18:44 +05:30
Manish Goregaokar
30827bab4d Make sync requests not crash / remove associated leak 2014-06-08 21:18:44 +05:30
Manish Goregaokar
e8de5f2f55 Support for extension methods, getResponseHeader(), and an extra error 2014-06-08 21:18:44 +05:30
Ms2ger
3e3536cf39 Fix and disable some compile warnings. 2014-06-06 20:56:44 +02:00
Manish Goregaokar
cfa20e9fba JSON response support and some default headers 2014-06-06 16:10:54 +05:30
Jack Moffitt
629c4c6afe Upgrade Rust. 2014-06-05 09:58:59 -06:00
Manish Goregaokar
ef126be28f Add responseText and status code support to XHR 2014-06-04 17:13:02 +05:30
Manish Goregaokar
161bc102f6 Order of firing events 2014-06-03 19:05:31 +05:30
Ms2ger
97efd122a3 Rename BindingDeclarations to Bindings. 2014-06-02 19:48:42 +02:00
Manish Goregaokar
bd3d7087fd don't change readystate if it's already been changed 2014-06-02 14:24:02 +05:30
Ms2ger
33e64c95d3 Include modules with only callbacks in BindingDeclarations.
This commit also includes improvements to the 'use' order in some of the
touched files.
2014-05-31 18:58:04 +02:00
Ms2ger
d896442a4a Implement Event::new_initialized and initialize the event in Event::new. 2014-05-31 10:42:21 +02:00
Tetsuharu OHZEKI
fa286fb062 Use Cell/RefCell for interior mutability of XMLHttpRequest. 2014-05-30 03:54:24 +09:00
Manish Goregaokar
6f728cb2ca Enable inline event handlers for XHR, and add most progressevent calls 2014-05-29 21:39:15 +05:30
Manish Goregaokar
5f860bb612 Request header and postdata support for XHR 2014-05-28 20:49:13 +05:30
Ms2ger
d5cb4377ef Use *mut T for the T* pointers in SpiderMonkey. 2014-05-26 18:19:44 +02:00
Ms2ger
eaedeb07cb Update Rust. 2014-05-22 16:36:40 -06:00
Manish Goregaokar
114d2e3565 Fix some XHR warnings 2014-05-21 10:27:55 +05:30
Manish Goregaokar
533fab46f9 Async XHR GET with basic response header support 2014-05-20 21:01:12 +05:30
Manish Goregaokar
b40d8b4d53 Basic synchronous GET with XHR 2014-05-09 20:39:54 +05:30
Martin Robinson
300004f3e9 Use == instead of match for tests against a single enum value
The performance of using == should now equal that of match, so many
identity methods can be simplified to a single line.

Fixes #1596.
2014-05-08 17:11:00 -07:00
Ms2ger
243814022e Replace all ~"" with "".to_owned(). 2014-05-03 22:17:45 +02:00
Josh Matthews
0f2d0b1dc3 Address review comments. 2014-05-03 14:18:31 -04:00
Josh Matthews
522d3f167b s/Unrooted/Temporary/g 2014-05-03 14:18:31 -04:00
Josh Matthews
76783b029e Move WebIDL methods to traits implemented by JSRef types. 2014-05-03 14:18:30 -04:00
Josh Matthews
d7b96db33c Implement safe rooting strategy via Unrooted, Root, JSRef, and JS. 2014-05-03 14:18:30 -04:00
Josh Matthews
ffdc3f5b32 Turn on GC all the time. Fix rooting errors during parsing and storing timers. Fix borrow errors during tracing. 2014-05-03 14:18:30 -04:00
Manish Goregaokar
a4c5df3494 Use ByteString in XHR 2014-05-03 19:39:11 +05:30
Manish Goregaokar
619da07a4f Webidl and basic implementation of XHR object 2014-05-03 14:00:20 +05:30