servo/components/script/dom/webxr
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
..
fakexrdevice.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
fakexrinputcontroller.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
mod.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrboundedreferencespace.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrcompositionlayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrcubelayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrcylinderlayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrequirectlayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrframe.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrhand.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrhittestresult.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrhittestsource.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrinputsource.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrinputsourcearray.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrinputsourceevent.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrinputsourceschangeevent.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrjointpose.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrjointspace.rs Propagate CanGc arguments through callers in constructors (#35541) 2025-02-20 16:17:45 +00:00
xrlayer.rs script: Add CanvasContext trait (#35448) 2025-02-21 20:26:27 +00:00
xrlayerevent.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrmediabinding.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrpose.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrprojectionlayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrquadlayer.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrray.rs script: implement ReadableByteStreamController (#35410) 2025-03-10 19:43:04 +00:00
xrreferencespace.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrreferencespaceevent.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrrenderstate.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrrigidtransform.rs script: implement ReadableByteStreamController (#35410) 2025-03-10 19:43:04 +00:00
xrsession.rs script: Mark callback methods with CanGc. (#35753) 2025-03-03 12:17:25 +00:00
xrsessionevent.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrspace.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrsubimage.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrsystem.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrtest.rs script: Mark callback methods with CanGc. (#35753) 2025-03-03 12:17:25 +00:00
xrview.rs script: implement ReadableByteStreamController (#35410) 2025-03-10 19:43:04 +00:00
xrviewerpose.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrviewport.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrwebglbinding.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
xrwebgllayer.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
xrwebglsubimage.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00