servo/components/script/dom/bindings
Taym Haddadi a5cf04c479
script: implement ReadableByteStreamController (#35410)
* script: implement ReadableByteStreamController

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* implement can_copy_data_block_bytes and copy_data_block_bytes

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Remove BufferSource::Default

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* implement StartAlgorithmFulfillmentHandler, StartAlgorithmRejectionHandler, PullAlgorithmFulfillmentHandler, PullAlgorithmRejectionHandler for ReadableByteStreamController

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* implement perform_pull_into

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* fix build

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix clippy

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix build

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Remove RefCell from PullIntoDescriptor and QueueEntry

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Remove commented code

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* add perform_cancel_steps, perform_release_steps and perform_pull_steps

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* fix clippy

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* fix crown

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* unskip readable-byte-streams

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix CRASH

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* fix clippy

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix more CRASHS

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* fix more crashes

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix bad-buffers-and-views.any.js test

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Update test expectations

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix BorrowMutError crashes

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* fix view_byte_length  test

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix non-transferable-buffers test

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Pass contexts as much as possible by reference

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Make respond_internal Fallible

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix crwon

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* fix process pull into descriptors using queue logic and resulting double-borrow

Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>

* Fix clippy

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* FIx more crashes

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix timeout tests

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix all tests

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Remove all error! logs

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Remove  #[allow(unsafe_code)]

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix lint
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix tidy

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

* Fix test expectation

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>

---------

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
Co-authored-by: gterzian <2792687+gterzian@users.noreply.github.com>
2025-03-10 19:43:04 +00:00
..
buffer_source.rs script: implement ReadableByteStreamController (#35410) 2025-03-10 19:43:04 +00:00
callback.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
cell.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
constructor.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
conversions.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
error.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
finalize.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
frozenarray.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
function.rs Dom: Re-implement ReadableStream Part 1 : Default Reader and Controller (#34064) 2024-12-17 21:14:00 +00:00
guard.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
import.rs script: Mark callback methods with CanGc. (#35753) 2025-03-03 12:17:25 +00:00
inheritance.rs Move more foundational types to script_bindings (#35280) 2025-02-04 10:36:30 +00:00
interface.rs Add an about:memory page (#35728) 2025-03-07 05:25:08 +00:00
iterable.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
like.rs Move more bindings types to script_bindings (#35620) 2025-02-23 14:25:46 +00:00
mod.rs Move more bindings code to script_bindings (#35578) 2025-02-22 04:46:56 +00:00
namespace.rs Move more bindings code to script_bindings (#35578) 2025-02-22 04:46:56 +00:00
num.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
principals.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
proxyhandler.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
record.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
refcounted.rs refactor: add CanGc as argument to Promise::reject_error (#35646) 2025-02-25 10:12:58 +00:00
reflector.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
root.rs Move more bindings code to script_bindings (#35578) 2025-02-22 04:46:56 +00:00
serializable.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
settings_stack.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
str.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
structuredclone.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
trace.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
transferable.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
utils.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
weakref.rs Move more bindings types to script_bindings (#35620) 2025-02-23 14:25:46 +00:00
xmlname.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00