aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/request.rs
Commit message (Collapse)AuthorAgeFilesLines
* clippy: Fix warnings in `components/script/dom/request.rs` (#31867)Aarya Khandelwal2024-03-271-38/+38
|
* clippy: Fix collapsible_if warnings (#31852)Oluwatobi Sofela2024-03-251-6/+6
|
* changed `match` to 'matches!' (#31850)Aarya Khandelwal2024-03-251-6/+4
|
* Fixed the .clone() warnings. (#31819)Aarya Khandelwal2024-03-221-9/+5
|
* clippy: Fix dereferencing a tuple pattern warnings (#31811)Oluwatobi Sofela2024-03-211-2/+2
|
* clippy: Fix dereferenced warnings (#31770)Oluwatobi Sofela2024-03-201-3/+3
|
* Further changes required by ServoOriol Brufau2023-11-211-1/+1
|
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-31/+25
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-0/+1
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* No tracing of nop traceable fields (#29926)Samson2023-08-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-1/+5
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-7/+9
|
* fixup! defaulted credentials mode to same-origin & removed fallback credentialsAnthonyJ32023-04-251-4/+3
|
* fixup! defaulted credentials mode to same-origin & removed fallback credentialsAnthonyJ32023-04-171-4/+1
|
* defaulted credentials mode to same-origin & removed fallback credentialsAnthonyJ32023-04-161-9/+1
| | | | Signed-off-by: AnthonyJ3 <johnsonac.3300@gmail.com>
* Update steps comment to match latest (2023-04-14) speccybai2023-04-141-72/+73
|
* Respect MIME type from headers instead of caching itcybai2023-04-131-7/+2
|
* Fix invalid use of ReferrerUrlMatthias Deiml2020-06-171-1/+1
|
* Make url for "client" referrer mandatoryMatthias Deiml2020-06-171-4/+5
|
* integrate readablestream with fetch and blobGregory Terzian2020-06-041-49/+41
|
* Fix the webidl for HeadersBastien Orivel2020-05-301-30/+13
| | | | | | Make the HeadersInit type match the spec. Fixes #26441
* check http_state in determine_request_referrerAlexandrov Sergey2020-05-191-1/+2
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-6/+1
|
* Add missing same-origin referrer policyTipowol2020-03-201-1/+2
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+1
|
* Add accountable-refcell as optional build time featureKunal Mohan2020-01-081-2/+2
|
* Autocomputed content-type header now reaches net requestPatrick Shaughnessy2019-12-211-4/+18
|
* Now just one is_cors_safelisted_request_header, with closer spec alignmentPatrick Shaughnessy2019-12-161-60/+85
|
* Add simple implementation of content-security-policy on scripts / stylesMichael Howell2019-10-161-1/+3
| | | | | | | | This needs a lot more hooks before it'll actually be a good implementation, but for a start it can help get some feedback on if this is the right way to go about it. Part of servo/servo#4577
* Support WebIDL `record<>`Kagami Sascha Rosylight2019-10-151-5/+6
|
* set referrer in window.load_urlRussell Cousineau2019-04-191-1/+1
| | | | | | | | - 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"
* Remove now-unnecessary must_root and allow(unrooted_must_root) annotationsManish Goregaokar2019-01-041-5/+0
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-2/+2
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-5/+5
|
* Format remaining filesPyfisch2018-11-061-8/+13
|
* `cargo fix --edition`Simon Sapin2018-11-061-22/+22
|
* Update hyper to 0.12Bastien Orivel2018-11-011-21/+20
|
* Format script componentchansuke2018-09-191-87/+122
|
* Make fetch() API use same-origin credentials by defaulttigercosmos2018-07-171-1/+1
|
* feat(webidl): expose arraybuffer overload in body idlOJ Kwon2018-03-231-0/+6
|
* allow unknown HTTP methodsGregory Terzian2017-11-161-11/+1
|
* copy headers from script request to net requestGregory Terzian2017-11-151-0/+3
|
* Merge functionality of WebsocketConnect into FetchKeith Yeung2017-10-241-2/+3
|
* Merge request type and destinationKeith Yeung2017-10-231-43/+10
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Remove use of unstable box syntax.Simon Sapin2017-10-161-2/+1
| | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* Auto merge of #18635 - servo:RENAME-ALL-THE-THINGS, r=emiliobors-servo2017-09-261-18/+18
|\ | | | | | | | | | | | | | | Rename JS<T> to Dom<T>, Root<T> to DomRoot<T>, and other things <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18635) <!-- Reviewable:end -->
| * Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-9/+9
| | | | | | | | | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.