aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/headers.rs
Commit message (Collapse)AuthorAgeFilesLines
* fixes dereferencing on an immutable reference (#31864)Aarya Khandelwal2024-03-261-1/+1
|
* changed `match` to 'matches!' (#31850)Aarya Khandelwal2024-03-251-12/+3
|
* Clippy: Fixed some clippy warnings (#31818)Aarya Khandelwal2024-03-231-1/+1
| | | | | | | | | | | * Fixed clippy warnings * made changes for lowercase characters. * changed is_lowercase() to is_ascii_lowercase() * added std library function `is_ascii_uppercase()` and `is_ascii_lowercase()` * made recommended changes
* 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
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-9/+10
| | | | | * strict imports formatting * Reformat all imports
* 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
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-3/+9
|
* Update steps comment to match latest (2023-04-14) speccybai2023-04-141-4/+0
|
* Fix return value of concept-header-list-get to Option<Vec<u8>>2shiori172023-03-261-7/+6
|
* Fix concept-headers-append2shiori172023-03-261-1/+1
|
* Add comments for concept-headers-append2shiori172023-03-211-9/+32
|
* Remove net from dependencies2shiori172023-03-201-2/+3
|
* Fix dom-headers-get2shiori172023-03-111-5/+4
|
* Fix header ordering2shiori172023-03-111-5/+8
|
* Fix concept-headers-append2shiori172023-03-111-38/+22
|
* Implement concept-header-list-sort-and-combine2shiori172023-03-061-11/+21
|
* Implement Headers.prototype.getSetCookie2shiori172023-03-051-0/+10
|
* Use data_url::Mime to parse the MIME TypesVincent Ricard2020-11-181-5/+72
| | | | | This commit follows the spectification https://fetch.spec.whatwg.org/#concept-header-extract-mime-type
* Fix the webidl for HeadersBastien Orivel2020-05-301-11/+10
| | | | | | Make the HeadersInit type match the spec. Fixes #26441
* Separate values in Headers with ", ", not ","Bastien Orivel2020-05-061-1/+1
| | | | | Tests expect header values to be separated by that so this fixes a few of them.
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-4/+2
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-3/+4
|
* Headers no longer have to be ASCII or UTF-8, though there is some ↵Patrick Shaughnessy2019-12-241-74/+56
| | | | disagreement with http::header::HeaderValue
* Now just one is_cors_safelisted_request_header, with closer spec alignmentPatrick Shaughnessy2019-12-161-32/+12
|
* Support WebIDL `record<>`Kagami Sascha Rosylight2019-10-151-4/+2
|
* Fix some new warningsSimon Sapin2019-06-221-2/+2
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-3/+4
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-3/+5
|
* Format remaining filesPyfisch2018-11-061-20/+29
|
* `cargo fix --edition`Simon Sapin2018-11-061-8/+8
|
* Update hyper to 0.12Bastien Orivel2018-11-011-34/+29
|
* Format script componentchansuke2018-09-191-42/+69
|
* copy headers from script request to net requestGregory Terzian2017-11-151-0/+6
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+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.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-5/+5
| | | | | | | 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.
* Rename DOMRefCell<T> to DomRefCell<T>Anthony Ramine2017-09-261-3/+3
| | | | | | | | I don't want to do such a gratuitous rename, but with all the other types now having "Dom" as part of their name, and especially with "DomOnceCell", I feel like the other cell type that we already have should also follow the convention. That argument loses weight though when we realise there is still DOMString and other things.
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* order derivable traits listsClément DAVID2017-08-231-1/+1
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Untry scriptSimon Sapin2017-06-181-11/+11
|
* Update the WebIDL parserAnthony Ramine2017-06-091-1/+1
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-3/+2
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-4/+5
|
* Implement the Fetch methodJeena Lee2016-09-291-0/+4
|
* Enable OpenEndedDictionary in HeadersJeena Lee2016-09-221-9/+13
| | | | Expected wpt results are updated as well.
* Auto merge of #13004 - jeenalee:combine-headers, r=jdmbors-servo2016-09-121-3/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update DOM headers `append` and `delete` <!-- Please describe your changes on the following line: --> Two changes are included in this PR: 1. A resolved TODO comment in `delete` is removed. 2. `append` method adds a space after a comma when combining header values. Expected wpt results are updated with this change. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/13004) <!-- Reviewable:end -->
| * Refactor combine method, and update expected wpt resultsJeena Lee2016-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | Instead of creating an array with length of 1 of `b','`, then pushing the first element of that array to `combined_value`, push a `b','` directly to `combined_value`. The web platform test for combining headers has been updated to reflect the Fetch spec (https://github.com/w3c/web-platform-tests/pull/3646). The expected web platform test results that will be affected by this change are updated.