aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/body.rs
Commit message (Collapse)AuthorAgeFilesLines
* read request and reader typinggterzian2024-07-111-2/+2
| | | | Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
* re-implement native controller methodsgterzian2024-07-111-2/+2
| | | | Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
* clippy: Fix let_and_return warnings (#31964)Oluwatobi Sofela2024-04-011-4/+1
|
* clippy: remove unneeded return statements (#31923)Azhar Ismagulova2024-03-281-1/+1
|
* clippy: Fix clone-on-copy warnings (#31877)Oluwatobi Sofela2024-03-261-5/+5
|
* 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
* clippy: Fix needless borrow warnings (#31813)Oluwatobi Sofela2024-03-211-6/+6
|
* clippy: Fix several warnings (#31710)RustAndMetal2024-03-181-1/+1
| | | Signed-off-by: RustAndMetal <111676747+RustAndMetal@users.noreply.github.com>
* rustdoc: Fix many rustdoc errors (#31147)Martin Robinson2024-01-221-3/+3
| | | | This fixes many rustdoc errors that occur due to raw URLs in rustdoc comments as well as unescaped Rust code that should be in backticks.
* Replace script_plugins with a clippy like rustc driver (named crown) (#30508)Samson2023-12-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove script_plugins * Use crown instead of script_plugins * crown_is_not_used * Use crown in command base * bootstrap crown * tidy happy * disable sccache * Bring crown in tree * Install crown from tree * fix windows ci * fix warning * fix mac libscript_plugins.dylib is not available anymore * Update components/script/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update for nightly-2023-03-18 Mostly just based off https://github.com/servo/servo/pull/30630 * Always install crown it's slow only when there is new version * Run crown test with `mach test-unit` * Small fixups; better trace_in_no_trace tests * Better doc * crown in config.toml * Fix tidy for real * no sccache on rustc_wrapper * document rustc overrides * fixup of compiletest * Make a few minor comment adjustments * Fix a typo in python/servo/platform/base.py Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com> * Proper test types * Ignore tidy on crown/tests --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Use Foo_Binding instead of FooBinding for namespace modules (#30447)Samson2023-09-301-1/+1
| | | | | * Update Codegen.py to emit Foo_Binding instead of FooBinding * s/FooBinding/Foo_Binding/g
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-24/+19
| | | | | * strict imports formatting * Reformat all imports
* No tracing of nop traceable fields (#29926)Samson2023-08-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix formatting.Josh Matthews2023-05-201-2/+1
|
* Remove unused argument from AlreadyInRealm::assert.Josh Matthews2023-05-201-2/+1
|
* Remove global argument from Promise::new_in_current_realm.Josh Matthews2023-05-201-1/+1
|
* fix streaming request bodies, terminate fetch if the body stream errorsGregory Terzian2020-06-161-42/+85
|
* Avoid sending a new chunk when the body is already doneCYBAI2020-06-131-3/+30
| | | | | | | | | | | | | | | | As discussed in https://github.com/servo/servo/issues/26807#issuecomment-640151804, we'd like to add a new flag, `in_memory_done`, to `TransmitBodyConnectHandler` so that we can correctly finish and drop the sender correctly. When we send the bytes, we will mark the body as done and we can recognize it's already done in next tick so that we can send a Done request to finish the sender. Also, when there comes a redirect request, it will go to `re-extract` route, we can set the `done` flag to `false` which means we won't stop the IPC routers yet. Then, if the re-extract sent its bytes, we will be marked as done again so that we can finish with stopping the IPC routes when Chunk request comes.
* partially integrate streaming request bodies with http re-directGregory Terzian2020-06-041-18/+85
|
* bypass SM for in-memory streams in request bodies, dis-allow other cases in ↵Gregory Terzian2020-06-041-0/+18
| | | | sync XHR
* require entered realm, use aes, to append native promise handlerGregory Terzian2020-06-041-13/+14
|
* integrate readablestream with fetch and blobGregory Terzian2020-06-041-47/+583
|
* Implement Blob methods (text/arraybuffer) and async file read methodKunal Mohan2020-01-281-1/+1
|
* rename compartment to realmKunal Mohan2020-01-241-6/+4
|
* Add accountable-refcell as optional build time featureKunal Mohan2020-01-081-1/+1
|
* re-structure blob, structured serializationGregory Terzian2019-12-111-2/+6
|
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-15/+17
|
* Pass InCompartment by valueAron Zwaan2019-04-251-1/+1
|
* Add proof parameter to Promise::new_in_current_compartmentAron Zwaan2019-04-241-2/+6
|
* Rename Promise::new to Promise::new_in_current_compartmentAron Zwaan2019-04-031-1/+2
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Format remaining filesPyfisch2018-11-061-2/+3
|
* `cargo fix --edition`Simon Sapin2018-11-061-10/+10
|
* Update hyper to 0.12Bastien Orivel2018-11-011-17/+16
|
* Format script componentchansuke2018-09-191-33/+48
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-2/+2
|
* Assert that we successfully got the pending exceptionYusuf Simonson2018-03-281-1/+1
|
* Reordered imports to pass tidyYusuf Simonson2018-03-271-2/+2
|
* Properly rethrow any exceptions from parsing JSON in Body mixin's `Json()`Yusuf Simonson2018-03-271-3/+8
|
* refactor(consume_body): json stored in roottraceableboxOJ Kwon2018-03-241-2/+3
|
* feat(consume_body): implement consume_body accepts arraybufferOJ Kwon2018-03-241-0/+21
|
* feat(webidl): expose arraybuffer overload in body idlOJ Kwon2018-03-231-1/+2
|
* 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`.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-3/+3
| | | | | | | 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 dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Make Promise::reject_error soundAnthony Ramine2017-09-221-4/+4
|
* Make Promise::resolve_native actually soundAnthony Ramine2017-09-211-4/+4
| | | | | We shouldn't have to pass a raw JSContext pointer, and to enter the promise's context's compartment by hand.
* 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-2/+2
|
* Remove some usage of rust-encodingSimon Sapin2017-05-271-5/+2
|