Jack Moffitt
c6ab60dbfc
Cargoify servo
2014-09-08 20:21:42 -06:00
Jack Moffitt
b91e6f30e0
Upgrade Rust.
2014-08-02 21:11:47 -06:00
Ms2ger
944d8b00b0
Call the generated rather than the hand-written traits ( fixes #2936 ).
2014-07-27 23:00:17 +02:00
Ms2ger
bb1c16c9af
Remove the unused lifetime variable from XMLHttpRequestMethods.
...
The lifetime applies to the JSRef type the trait is implemented on, not to the
trait itself.
2014-07-27 22:54:51 +02:00
Ms2ger
0f9942a2c6
Remove OverrideMimeType from XMLHttpRequestMethods.
...
It is not present in the IDL, and is not actually implemented.
2014-07-27 22:54:51 +02:00
Manish Goregaokar
a64dafd815
Basic implementation of CORS
2014-07-25 05:54:48 +05:30
Simon Sapin
6917fbf28e
Used rust-url directly instead of servo_util::url
...
The latter now only calls the former.
2014-07-21 20:22:29 +01:00
Simon Sapin
dc49f4fda6
Start dogfooding rust-url. Fix #1673 .
2014-07-21 20:21:35 +01:00
Manish Goregaokar
cf7e9c1a3b
Check for worker scope in responseText setter
2014-07-19 21:32:03 +05:30
Ms2ger
9fd67a751f
Implement a resource_task getter on GlobalRef.
...
This is needed to fetch resources on all threads.
2014-07-17 16:22:52 +02:00
Ms2ger
829259fb79
Introduce abstractions for global scopes.
...
Part of #2811 .
2014-07-15 15:33:57 +02:00
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