aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/request.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * 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.