aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/body.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-10/+10
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Rename Reflectable::global_scope to globalAnthony Ramine2016-10-061-4/+4
|
* Remove Reflectable::globalAnthony Ramine2016-10-061-2/+2
|
* Make Promise::new take a &GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Introduce Reflectable::global_scopeAnthony Ramine2016-10-061-3/+4
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-5/+5
|
* Provide the fetched data to fetch() consumers.Ms2ger2016-10-061-7/+24
|
* Auto merge of #13577 - servo:warnings, r=jdmbors-servo2016-10-051-2/+0
|\ | | | | | | | | | | | | | | Squash some build warnings. <!-- 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/13577) <!-- Reviewable:end -->
| * Squash some build warnings.Ms2ger2016-10-041-2/+0
| |
* | Revert "Make DOMRefCell use style’s copy of RefCell"Simon Sapin2016-10-041-1/+1
|/ | | | This reverts commit ec723057b2360446790d436fe5e234d798fb4175.