aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/request.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * Rename DOMRefCell<T> to DomRefCell<T>Anthony Ramine2017-09-261-7/+7
| | | | | | | | | | | | | | | | 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 MutNullableJS<T> to MutNullableDom<T>Anthony Ramine2017-09-261-2/+2
| |
| * Rename JS<T> to Dom<T>Anthony Ramine2017-09-261-1/+1
| |
| * Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
| |
* | Removed integrity check and test for no-cors requestsDaniel Kolsoi2017-09-251-4/+0
|/ | | | Also updated request-headers.html manifest hash
* Utilize match_ignore_ascii_case! in more places.Corey Farwell2017-07-291-10/+10
|
* Introduce service-worker modeKeith Yeung2017-06-221-26/+10
|
* Untry scriptSimon Sapin2017-06-181-9/+9
|
* Update the WebIDL parserAnthony Ramine2017-06-091-4/+4
|
* Kill Request::omit_origin_headerAnthony Ramine2017-04-071-4/+1
|
* Remove all internal mutability from RequestAnthony Ramine2017-04-031-44/+36
|
* Auto merge of #15715 - nox:custom-derive, r=SimonSapinbors-servo2017-02-241-0/+1
|\ | | | | | | | | | | | | | | | | | | | | Make #[dom_struct] a proc_macro attribute The rustup is needed for https://github.com/rust-lang/rust/pull/40039. <!-- 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/15715) <!-- Reviewable:end -->
| * Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
| |
* | Make Request throw less often (fixes #13457)Mathieu Hordesseaux2017-02-231-11/+6
|/
* Use RootedTraceableBox for dictionaries.Ms2ger2017-02-161-2/+3
|
* Use Heap for dictionary and union members.Ms2ger2017-02-161-3/+3
|
* Added Websocket to RequestMode enumDowon Cha2017-01-081-0/+1
| | | | | | set unreachable in dom/request.rs for websocket fixed imports
* Use the API base URL in Fetch APIs.Ms2ger2016-12-191-2/+1
|
* Remove HeapGCValueAnthony Ramine2016-12-121-2/+2
| | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-5/+5
|
* Auto merge of #14156 - frewsxcv:cors-capitalization, r=KiChjangbors-servo2016-11-101-6/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update CORS naming from 'CORS' to 'Cors'. As per: https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430] Acronyms should be considered one word and not all caps. <!-- 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/14156) <!-- Reviewable:end -->
| * Update CORS naming from 'CORS' to 'Cors'.Corey Farwell2016-11-091-6/+6
| | | | | | | | | | | | | | | | As per: https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430] Acronyms should be considered one word and not all caps.
* | Auto merge of #13802 - jeenalee:request-headers, r=jdmbors-servo2016-11-091-11/+32
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow Request's Headers to be created with various objects <!-- Please describe your changes on the following line: --> While Headers could be constructed correctly with an array or object (open ended dictionary/MozMap), Request's Headers failed to be created with non-Headers object (such as array or open ended dictionary/MozMap). Before, Request's Headers could be filled with only a Headers object in Step 28. This has been expanded to accommodate array and open ended dictionary. Step 29 empties the Request's Headers list after it had been filled in Step 28, thus resulting in an empty Headers object when it shouldn't be. This step has been removed with a comment in this commit. If a RequestInit Headers is _not_ given, but a RequestInfo Headers is given, RequestInfo Headers should be used to construct Request Headers. That step has been added after Step 31. Corresponding wpt result is updated in this commit. --- <!-- 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 - [X] These changes fix #13758 (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/13802) <!-- Reviewable:end -->
| * Fill r's headers with headers_copy when HeadersInit::Headers is givenJeena Lee2016-11-071-1/+2
| | | | | | | | | | | | | | Instead of filling request's headers whenever a `HeadersInit` is given, this patch fills request's headers only when `HeadersInit` with a type of `Headers` is given. Previously, the constructor tried to fill request's headers with itself, causing Servo to crash.
| * Remove unused use statementJeena Lee2016-10-271-1/+0
| |
| * Address review commentsJeena Lee2016-10-271-15/+20
| |
| * Allow Request's Headers to be created with various objectsJeena Lee2016-10-171-11/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While Headers could be constructed correctly with an array or object (open ended dictionary/MozMap), Request's Headers failed to be created with non-Headers object (such as array or open ended dictionary/MozMap). Before, Request's Headers could be filled with only a Headers object in Step 28. This has been expanded to accommodate array and open ended dictionary. Step 29 empties the Request's Headers list after it had been filled in Step 28, thus resulting in an empty Headers object when it shouldn't be. This step has been removed with a comment in this commit. If a RequestInit Headers is *not* given, but a RequestInfo Headers is given, RequestInfo Headers should be used to construct Request Headers. That step has been added after Step 31. Corresponding wpt result is updated in this commit.
* | Code review comments and upstream merge conflictsRaghav2016-11-041-1/+1
|\ \ | | | | | | | | | | | | | | | Incorporated code review comments in components/net/http_loader.rs Resolved merge conflicts in cargo.lock file. Updated ReferrerPolicy in lib.rs
| * | Move ReferrerPolicy to net_traits.Ms2ger2016-11-041-1/+1
| | |
* | | Network Security : Implement StrictOrigin and StrictOriginWhenCrossOriginRaghav2016-11-041-0/+6
|/ / | | | | | | | | | | Referer policy strict-origin and strict-origin-when-cross-origin changes have been implemented. Relevant unit test cases have been added. Enum for RefererPolicy has been added to hyper codebase and v 0.9.11 of hyper contains these changes. This commit also contains changes related to upgrade of hyper from v0.9.10 to v0.9.11. Other dependencies changed are rayon, utils, num_cpus.