Kamil Muszyński
c6dfd7e2fa
Issue #9561 continued - renamed *_thread_source to *_task_source in global.rs and related files
2016-02-17 21:25:12 +01:00
Keith Yeung
066c5ea73a
Clean up XHR API
2016-02-17 12:44:54 -05:00
bors-servo
c388c83dcd
Auto merge of #9625 - danlrobertson:i9547, r=KiChjang
...
Implement step 9 of XHR Open method
Implement step 9 of the [XMLHttpRequest Open](https://xhr.spec.whatwg.org/#dom-xmlhttprequest-open ) method. Thanks to @KiChjang for all the help!
As always, comments and critiques are welcomed!
Fix : #9547
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9625 )
<!-- Reviewable:end -->
2016-02-17 02:51:44 +05:30
Daniel Robertson
10e7af50fe
Implement step 9 of XHR open method
...
Implement step 9 of the Open method for XMLHttpRequest.
2016-02-15 04:57:24 +00:00
Keith Yeung
6be5218d3c
Cache XHR JSON responses
2016-02-14 23:55:43 -05:00
Daniel Robertson
0b0e1473cd
Implement Blob response for XMLHttpRequest: #9623
...
In response to #9623 implement the Blob response for XML HttpRequest and
change the expected result for the script test.
2016-02-14 20:00:30 +00:00
Ms2ger
152cec69eb
Store a pointer to the browsing context in the Document.
2016-02-11 13:08:11 +01:00
Ms2ger
bc6548fa80
Stop importing XMLHttpRequestResponseType variants.
2016-02-09 10:10:01 +01:00
bors-servo
28ecb0bba3
Auto merge of #9543 - alopatindev:enums_constructors_codingstyle_fix, r=KiChjang
...
Fix #9508 : Beautify our union enums constructors
Solves #9508
@jdm Please review. Thanks!
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9543 )
<!-- Reviewable:end -->
2016-02-07 05:59:57 +05:30
Alexander Lopatin
2be49404be
Fix #9508 : Beautify our union enums constructors
2016-02-07 02:55:21 +03:00
Tim van der Meij
816c65aab0
Make step 3 of XHR's SetResponseType method match the specification
2016-02-06 22:33:42 +01:00
bors-servo
b3bbea8be8
Auto merge of #9536 - Ms2ger:dead, r=nox
...
Remove a dead_code annotation from a live method.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9536 )
<!-- Reviewable:end -->
2016-02-05 10:02:25 +05:30
Anthony Ramine
cb5cd8d881
Say farewell to in-tree HeapSizeOf
2016-02-04 22:03:32 +01:00
Ms2ger
31dbb29895
Remove a dead_code annotation from a live method.
2016-02-04 15:17:09 +01:00
St.Spyder
763b99258f
Update XHR BodyInit, update extract method impl
2016-01-18 02:26:13 +05:30
Keith Yeung
a64f832e57
Change all DOMStrings to USV strings for XHR
2016-01-16 08:51:34 -05:00
Chad Kimes
ce6075825d
Add global default method for Reflectable trait
2016-01-11 20:23:47 -05:00
Chad Kimes
9371c041a3
Remove global field from XMLHttpRequest
2016-01-10 22:34:44 -05:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
Johannes Linke
6b215f38ee
Fix a bunch of clippy lints
2016-01-02 23:27:15 +01:00
David Rajchenbach-Teller
1e81b8c133
Resolves #4183 - Implemementing context-based MIME type sniffing
...
The version of the standard is not finalized at the time of this writing.
Specifications may be found here: https://mimesniff.spec.whatwg.org/#context-specific-sniffing .
2015-12-31 07:45:03 -05:00
Mathieu Agopian
11234f5370
Use Url.join instead of UrlParser.base_url(...).parse ( #9002 )
2015-12-18 17:02:41 +01:00
Arthur Skobara
8acb21a594
Remove from Trusted::new an unnecessary argument
2015-12-12 22:31:19 +06:00
Ms2ger
70653bfe08
Remove unused imports.
2015-12-12 02:13:59 -05:00
bors-servo
99fd946130
Auto merge of #8930 - frewsxcv:event-type-atom, r=nox
...
Pass around event types as Atoms instead of Strings
`Event` internally stores the `type` as an `Atom`, and we're `String`s
everywhere, which can cause unnecessary allocations to occur since
they'll end up as `Atom`s anyways.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8930 )
<!-- Reviewable:end -->
2015-12-11 21:12:35 +05:30
Corey Farwell
4accaf50b2
Pass around event types as Atoms instead of Strings
...
`Event` internally stores the `type` as an `Atom`, and we're `String`s
everywhere, which can cause unnecessary allocations to occur since
they'll end up as `Atom`s anyways.
2015-12-10 23:47:25 -05:00
bors-servo
0abddae49d
Auto merge of #8926 - frewsxcv:no-map, r=SimonSapin
...
Prefer 'if let' over 'map() with side effects'
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8926 )
<!-- Reviewable:end -->
2015-12-11 06:53:36 +05:30
Corey Farwell
6952d256d4
Prefer 'if let' over 'map() with side effects'
2015-12-10 19:23:07 -05:00
Tetsuharu OHZEKI
e8c12c1c6d
Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all
2015-12-10 16:49:29 -05:00
Jitendra Jain
88e6504e0a
Implement responseXML API and document response type for XHR
2015-12-09 17:48:04 -05:00
bors-servo
ef000a458a
Auto merge of #8853 - KiChjang:generic-task-sources, r=jdm
...
Split fn script_chan into 5 different task channel fn
Partial #7959 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8853 )
<!-- Reviewable:end -->
2015-12-07 07:46:10 +05:30
Keith Yeung
8d90034d29
Split fn script_chan into 5 different task channel fn
2015-12-06 12:12:14 -08:00
Jigesh Mehta
ce3c9ff57c
implement support for withCredentials
2015-12-04 16:34:30 -05:00
Jitendra Jain
af7c0837f4
Implement final_mime_type and final_charset helpers and use in text_response
2015-12-02 20:06:59 -05:00
Alan Jeffrey
84bde75b42
Replaced DOMString constructor by conversion functions.
...
Replaced DOMString(...) by DOMString::from(...).
Replaced ....0 by String::from(...).
Removed any uses of .to_owner() in DOMString::from("...").
2015-11-12 17:52:59 -06:00
bors-servo
b40882093a
Auto merge of #8428 - Ms2ger:conversions, r=Manishearth
...
Update js.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8428 )
<!-- Reviewable:end -->
2015-11-13 01:13:52 +05:30
bors-servo
4848e37e2e
Auto merge of #7844 - Wafflespeanut:requests, r=jdm
...
Cancelable network requests!
fixes #4974
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7844 )
<!-- Reviewable:end -->
2015-11-12 18:59:58 +05:30
Ms2ger
6d2ae85c1f
Use the conversion traits from js.
2015-11-12 10:48:58 +01:00
Ravi Shankar
10f5584f78
Implement cancellation listener for cancelling network requests
2015-11-12 14:02:59 +05:30
benshu
7623e89506
Execute XHR timeout callbacks directly. (Fixes #8468.)
2015-11-11 23:12:07 +01:00
benshu
d27a3244f2
XHR timeouts use same abstraction as scripts timers. ( fixes #3396 )
2015-11-11 00:52:34 +01:00
Jitendra Jain
ed809a60bf
Implement the overrideMimeType method for XMLHttpRequest
2015-11-05 22:19:24 -05:00
Ms2ger
6b75078503
Make DOMString a newtype around String, rather than a typedef.
...
This should make it somewhat easier to experiment with alternative
representations in the future. To reduce churn, this commit leaves the String
field public, though.
Also, this will allow us to use the default String type to represent the IDL
USVString type, which explicitly forbids unpaired surrogates, ans as such is
a better match to the Rust String type.
2015-11-04 12:09:11 +01:00
Ms2ger
e6aa976462
Use DOMString::new() somewhat consistently.
2015-11-04 12:09:10 +01:00
David Zbarsky
722aa86c89
Get rid of a bunch of explicit derefs
2015-11-03 19:51:46 -08:00
rohan.prinja
6e774ea6eb
merge from master
2015-11-03 19:01:23 +09:00
nxnfufunezn
d8ef3809a6
Removed JS::root Fixes #8251
2015-10-31 18:15:16 +05:30
Michael Wu
434a5f1d8b
Initialize dom struct fields in declaration order
2015-10-30 15:40:43 -04:00
Michael Wu
7e786fb8ac
Infer types when appropriate
2015-10-30 15:23:29 -04:00
Ms2ger
b0841e007e
Avoid a Vec copy in SendParam::extract.
2015-10-30 15:45:25 +01:00