Bastien Orivel
ec665d9dce
Properly set the url on the Response object when the response is an opaqueredirect
2020-05-06 20:08:26 +02:00
YUAN LYU
3ea6d87bcc
Add trait DomObjectWrap to provide WRAP function
2020-03-20 22:16:56 -04:00
Médi-Rémi Hashim
cc2d68a15d
Do not include request progress/total values on XHR timeout
2020-01-30 18:15:04 +00:00
Patrick Shaughnessy
52d8336d7f
do less on abort if not done
2020-01-25 19:12:19 -05:00
Kunal Mohan
f7db4b7f80
Modify script
to prevent further violations of snake_case
2020-01-18 14:22:15 +05:30
Gregory Terzian
6e8a85482c
re-structure blob, structured serialization
2019-12-11 22:46:50 +08:00
Bastien Orivel
a91176e7fc
Trim header values in GetResponseHeader
...
Fixes #24917
2019-11-30 16:59:10 +01:00
petosorus
f089d166bc
XMLHttpRequest.responseXML returns null when a network error occurs
2019-10-01 23:28:35 +02:00
CYBAI
7432913b7f
Remove unused checking
...
We've supported [Exposed] so no need to check the global scope type!
2019-09-26 22:53:10 +09:00
marmeladema
5ca3dd9d05
Remove some usage of unsafe code in XMLHttpRequest
2019-08-09 00:02:08 +01:00
marmeladema
2c5d0a6ebc
Convert CGTraitInterface to use safe JSContext instead of raw JSContext
2019-07-24 08:24:50 +01:00
Simon Sapin
1d38bc0419
Fix some new warnings
2019-06-22 14:59:09 +02:00
Josh Matthews
b1510d9ad5
Upgrade headers, headers-core, and hyper_serde.
2019-06-13 11:08:16 -04:00
sreeise
e1692789f8
Change XHRContext and resource timing information to use request URL instead of XHR's global URL r?@jdm
2019-05-24 15:11:09 -04:00
Josh Matthews
57d2b5a92d
Remove mozjs dep from malloc_size_of.
2019-05-02 09:30:03 -04:00
Russell Cousineau
2440e0f98a
set referrer in window.load_url
...
- this conforms to follow-hyperlinks spec step 13
- this conforms to window-open spec step 14.3
- replace uses of `referrer_url` with `referrer`
- in Request class, change "no-referrer" to ""
- set websocket fetch referrer to "no-referrer"
2019-04-19 16:50:38 -07:00
Anthony Ramine
44163148c2
Make use of RefCell::try_borrow_unguarded
2019-04-12 19:02:07 +02:00
Lucas Fantacuci
6b2be9b31d
Implementing the builder pattern for RequestInit
2019-04-10 14:01:30 -03:00
Manish Goregaokar
79a565930b
xhr: Reserve content-length worth of space in the response if possible
2019-03-13 23:03:45 -07:00
Manish Goregaokar
f340a5bf29
xhr: Stop cloning response text every time we get a chunk
2019-03-13 15:22:38 -07:00
Simon Sapin
be69f9c3e6
Rustfmt has changed its default style :/
2018-12-28 13:17:47 +01:00
ddh
26007fddd3
refactored performance timing to align with updated spec
...
refactoring with ResourceFetchMetadata
implemented deprecated window.timing functionality
created ResourceTimingListener trait
fixed w3c links in navigation timing
updated include.ini to run resource timing tests on ci
2018-11-20 16:21:32 +00:00
Jan Andre Ikenmeyer
a1a14459c1
Update MPL license to https (part 3)
2018-11-19 14:47:12 +01:00
Simon Sapin
9f977c5287
Remove useless use crate_name;
imports.
...
A `crate_name::foo` path always works in 2018
2018-11-08 09:29:52 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Pyfisch
cb07debcb6
Format remaining files
2018-11-06 22:30:31 +01:00
Simon Sapin
76e59a46d3
Sort use
statements
2018-11-06 15:26:02 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
Bastien Orivel
024b40b39d
Update hyper to 0.12
2018-11-01 19:17:36 +01:00
chansuke
c37a345dc9
Format script component
2018-09-19 17:40:47 -04:00
Gregory Terzian
671627e97e
introduce "per task source" ignoring of tasks
2018-07-10 13:42:28 +08:00
Nupur Baghel
2009c4e481
typed array support for XMLHttpRequest's send API
2018-03-29 11:10:00 +05:30
Marcin Mielniczuk
356c57e628
Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393
2018-03-28 21:28:30 +02:00
Paul Rouget
da349ee8a9
remove mozbrowser code
2018-02-13 09:40:06 +01:00
Nupur Baghel
d02422408e
Updated content_type of Document and XMLDocument from DOCString to Mime
2018-02-09 09:32:56 +05:30
CYBAI
5104d2947f
Use specific negative assertion for DOM XMLHttpRequest
2018-01-26 02:23:49 +08:00
CYBAI
40e40e0f8b
Use specific assertion for DOM XMLHttpRequest
2018-01-26 01:18:58 +08:00
Simon Sapin
b78ac6ba6a
Use safe NonZero constructor instead of an explicit null check
2018-01-22 17:41:26 +01:00
Simon Sapin
52eda6082f
Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject>
2018-01-22 17:41:25 +01:00
Simon Sapin
4d459bce32
Fix tyvar_behind_raw_pointer warnings
...
https://github.com/rust-lang/rust/issues/46906
2018-01-10 20:54:35 +01:00
Imanol Fernandez
a39f1fe1bf
Handle arraybuffer responseType in XHR
2017-11-23 17:19:57 +01:00
Manish Goregaokar
3900f5e616
Use FetchCanceller for document loads
2017-11-22 14:06:27 -08:00
Manish Goregaokar
78c8b4232f
Use FetchCanceller in XHR
2017-11-21 16:45:04 -08:00
Manish Goregaokar
27457e4d84
Fetch cancellation: Send cancellation message whenever XHR needs to abort a fetch
2017-11-17 16:00:09 -08:00
Manish Goregaokar
87e4c15280
Fetch cancellation: Store cancel_chan in XHR
2017-11-17 16:00:08 -08:00
Manish Goregaokar
1dfb125cc9
Fetch cancellation: Add cancel_chan to FetchContext
2017-11-17 15:59:59 -08:00
Simon Sapin
793bebfc0e
Upgrade to rustc 1.23.0-nightly (02004ef78 2017-11-08)
2017-11-09 16:56:39 +01:00
Henri Sivonen
18a52ea0e9
Avoid decoding XHR type="json" responses as UTF-16BE/LE
...
https://infra.spec.whatwg.org/#parse-json-from-bytes says to use
"UTF-8 decode" rather than "decode", so UTF-16BE/LE BOM should
not be honored.
2017-11-02 14:28:51 +02:00
Simon Sapin
a3971eb686
Replace rust-encoding with encoding-rs
2017-11-01 10:16:11 +01:00
Simon Sapin
a3ac21d23d
Use the url crate without its query_encoding feature
2017-10-31 19:08:26 +01:00