aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed some clippy warnings in components (#32025)komuhangi2024-04-101-2/+1
| | | | | * Fixed some clippy warnings in components * Updated the simplification of bolean expressions in componets/script/dom/range.rs
* clippy: fixed various clippy warnings in `components/scripts` (#31960)Rosemary Ajayi2024-04-011-1/+1
| | | | | | | | | * fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings
* fix redundant closures in component/script/dom (#31917)Ekta Siwach2024-03-281-2/+2
| | | | | | | | | | | | | * fixed unnecessary conversions * resolved conflicts * resolved conflicts * fix redundant closures in component/script/dom * resolved conflicts * fixed formatting
* WebIDL: Replace `NonNull<JSObject>` in `xmlhttprequest` (#31880)eri2024-03-271-51/+44
| | | | | | | | | | | * WebIDL: Replace `NonNull<JSObject>` in `xmlhttprequest.rs` * doc: Update functions comments to docstring * fix: Actually allocate `response_arraybuffer` * fix: Change step descriptions * fix: change step numbers
* clippy: Fix option_map_unit_fn warnings (#31906)Oluwatobi Sofela2024-03-271-5/+5
|
* clippy: Fix single_match warnings (#31876)Oluwatobi Sofela2024-03-261-54/+51
|
* clippy: Fix collapsible_if warnings (#31852)Oluwatobi Sofela2024-03-251-23/+23
|
* clippy: Fix `explicit_auto_deref` warnings in `components/script` (#31837)Oluwatobi Sofela2024-03-231-1/+1
| | | | | | | | | * clippy: Fix explicit auto-deref warnings * clippy: Fix explicit auto-deref warnings * refactor: Tidy up code * refactor: Fix method not found errors
* Fixed the .clone() warnings. (#31819)Aarya Khandelwal2024-03-221-1/+1
|
* clippy: Fix redundant field names warnings (#31793)Oluwatobi Sofela2024-03-201-3/+3
|
* clippy: Fix many warnings in `components/script` (#31717)Richard Dushime2024-03-191-5/+5
| | | | | | | | | | | | | | | | | * Fix Several clippy warnings * Fix Build errors * Fix Unused import * Fix requested changes * Fix rustfmt * Minor fixes --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* clippy: Fix some warnings in the `script` crate (#31719)Rosemary Ajayi2024-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | | * Fix InlineFormatting error * BoxFrament * fix clippy error * clippy:fix clipy errors * fix clippy errors * fix clippy errors * fix clippy errors * Remove changes to `layout_2020` --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Update overrideMimeType and final-charset to match xhr spec (#29812)cybai (Haku)2024-02-281-31/+35
| | | | | | | | | | | * Update overrideMimeType to match xhr spec * Update final-encoding to match xhr spec * Fix an issue and add more comments --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-42/+41
| | | | | * strict imports formatting * Reformat all imports
* No tracing of nop traceable fields (#29926)Samson2023-08-041-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `no_trace` option to JSTraceable derive * NoTrace wrapper * Port some types to no_trace schematics * Fixing my unsafe mistakes (not tracing traceables) * Add docs & safety guards for no_trace Safety guards (trait shenanigans) guarantees safety usage of `no_trace` * Port canvas_traits to no_trace * Port servo_media to no_trace * Port net_traits to no_trace * Port style to no_trace * Port webgpu to no_trace * Port script_traits to no_trace * Port canvas_traits, devtools_traits, embedder_traits, profile_traits to no_trace * unrooted_must_root lint in seperate file * Add trace_in_no_trace_lint as script_plugin * Composable types in must_not_have_traceable * Introduced HashMapTracedValues wrapper * `HashMap<NoTrace<K>,V>`->`HashMapTracedValues<K,V>` * Port rest of servo's types to no_trace * Port html5ever, euclid, mime and http to no_trace * Port remaining externals to no_trace * Port webxr and Arc<Mutex<_>> * Fix spelling in notrace doc
* Rename reflect_dom_object2.Josh Matthews2023-05-311-2/+2
|
* Formatting.Josh Matthews2023-05-281-3/+10
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-5/+7
|
* Upgrade HyperNaveen Gattu2022-01-161-1/+1
|
* Update nightly rustc.Josh Matthews2021-11-011-1/+1
|
* Fix `document.characterSet` not reflecting byte order marks.Andreu Botella2020-12-311-2/+2
| | | | | | | | | | | | | The process of decoding the network byte stream to Unicode is backed by an instance of `encoding_rs::Decoder`, which will switch the encoding it uses if it finds a BOM in the byte stream. However, this change in encoding is not communicated back to the caller and so `document.characterSet` gives the wrong result. This change fixes that. See whatwg/html#5359 and whatwg/encoding#203 for the spec-level backing for this change. Signed-off-by: Andreu Botella <abb@randomunok.com>
* Use data_url::Mime to parse the MIME TypesVincent Ricard2020-11-181-19/+48
| | | | | This commit follows the spectification https://fetch.spec.whatwg.org/#concept-header-extract-mime-type
* Implements "upload listener flag" for XHRVincent Ricard2020-09-241-13/+24
|
* Fix wrong priority for XHR username/passwordVincent Ricard2020-09-211-2/+3
|
* Use `asynch` instead of `r#async`Camelid2020-07-161-3/+3
| | | | | | This is a vestige of the transition from 2015 to 2018 edition Rust. `async` was added as a keyword in 2018 edition Rust, so `cargo fix` changed the variable name here to `r#async`.
* ensure clean shutdown of all threads running JSGregory Terzian2020-06-301-1/+4
|
* Use global.get_referrer() when appropiateMatthias Deiml2020-06-171-9/+6
|
* Make url for "client" referrer mandatoryMatthias Deiml2020-06-171-22/+23
|
* update XHR send to use XMLHttpRequestBodyInitGregory Terzian2020-06-051-29/+11
|
* partially integrate streaming request bodies with http re-directGregory Terzian2020-06-041-7/+5
|
* bypass SM for in-memory streams in request bodies, dis-allow other cases in ↵Gregory Terzian2020-06-041-14/+22
| | | | sync XHR
* integrate readablestream with fetch and blobGregory Terzian2020-06-041-96/+89
|
* Properly set the url on the Response object when the response is an ↵Bastien Orivel2020-05-061-1/+1
| | | | opaqueredirect
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-6/+1
|
* Do not include request progress/total values on XHR timeoutMédi-Rémi Hashim2020-01-301-10/+18
|
* do less on abort if not donePatrick Shaughnessy2020-01-251-8/+15
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+1
|
* re-structure blob, structured serializationGregory Terzian2019-12-111-3/+4
|
* Trim header values in GetResponseHeaderBastien Orivel2019-11-301-2/+4
| | | | Fixes #24917
* XMLHttpRequest.responseXML returns null when a network error occurspetosorus2019-10-011-1/+6
|
* Remove unused checkingCYBAI2019-09-261-6/+0
| | | | We've supported [Exposed] so no need to check the global scope type!
* Remove some usage of unsafe code in XMLHttpRequestmarmeladema2019-08-091-21/+21
|
* Convert CGTraitInterface to use safe JSContext instead of raw JSContextmarmeladema2019-07-241-14/+17
|
* Fix some new warningsSimon Sapin2019-06-221-1/+1
|
* Upgrade headers, headers-core, and hyper_serde.Josh Matthews2019-06-131-2/+1
|
* Change XHRContext and resource timing information to use request URL instead ↵sreeise2019-05-241-4/+3
| | | | of XHR's global URL r?@jdm
* Remove mozjs dep from malloc_size_of.Josh Matthews2019-05-021-0/+1
|
* set referrer in window.load_urlRussell Cousineau2019-04-191-2/+6
| | | | | | | | - 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"
* Make use of RefCell::try_borrow_unguardedAnthony Ramine2019-04-121-2/+0
|
* Implementing the builder pattern for RequestInitLucas Fantacuci2019-04-101-21/+18
|