Dom: Re-implement ReadableStream Part 1 : Default Reader and Controller#34064
Dom: Re-implement ReadableStream Part 1 : Default Reader and Controller#34064
ReadableStream Part 1 : Default Reader and Controller#34064Conversation
97316af to
13a6c4a
Compare
|
@Taym95 @wusyong I have rebased, but the new There are also a couple of more TODO's in the code we need to address(at least one constructor, and the removing of native calls part of #32898) I've added these as TODOs to #32898 |
ReadableStream Part 1 : Default Reader and Controller
ReadableStream Part 1 : Default Reader and ControllerReadableStream Part 1 : Default Reader and Controller
ReadableStream Part 1 : Default Reader and ControllerReadableStream Part 1 : Default Reader and Controller
ReadableStream Part 1 : Default Reader and ControllerReadableStream Part 1 : Default Reader and Controller
|
I fixed streams feature in mozjs to properly hide readablestream things behind streams feature. |
da9c79b to
b460d74
Compare
|
🔨 Triggering try run (#11626946713) for Linux WPT |
|
I am currently debugging the "Controller must have a stream when the should pull algo is called into." CRASH of |
|
|
|
So many results that only job summary works: https://github.com/servo/servo/actions/runs/11626946713/attempts/1#summary-32381010382 |
|
btw we also need to |
6b8567b to
ff9fcc2
Compare
|
At the next rebase, we can add the |
f0859a0 to
93fa9e9
Compare
Signed-off-by: gterzian <[email protected]> Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
Signed-off-by: gterzian <[email protected]> Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
Signed-off-by: gterzian <[email protected]> Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
* fix error handling in cancel steps Signed-off-by: gterzian <[email protected]> * in pull steps, reject promise if pull algo throws Signed-off-by: gterzian <[email protected]> * if start algorithm fails, rethrow the error Signed-off-by: gterzian <[email protected]> * when the strategy size fails, directly get the pending exception and use it to error the stream Signed-off-by: gterzian <[email protected]> * add error handling to enqueue value with size Signed-off-by: gterzian <[email protected]> * when enqueueing a value errors, ensure we error and stream with the same error used to throw an exception Signed-off-by: gterzian <[email protected]> --------- Signed-off-by: gterzian <[email protected]> Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
Signed-off-by: gterzian <[email protected]> Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
* Implement readablestreamdefaulttee Signed-off-by: Taym <[email protected]> * Create UnderlyingSourceType::Tee each stream Signed-off-by: Taym <[email protected]> * Use Dom instead of DomRoot Signed-off-by: Taym <[email protected]> * Queue a microtask for readRequest chunk steps Signed-off-by: Taym <[email protected]> * fix create_readable_stream Signed-off-by: Taym <[email protected]> * Remove unnecessary Rc Signed-off-by: Taym <[email protected]> * Use correct doc link Signed-off-by: Taym <[email protected]> * Add #[allow(crown::unrooted_must_root)] Signed-off-by: Taym <[email protected]> * Fix crash in ClosedPromiseRejectionHandler Signed-off-by: Taym <[email protected]> * reflect TeeReadRequest and TeeUnderlyingSource Signed-off-by: Taym <[email protected]> * fix can_gc Signed-off-by: Taym <[email protected]> * reflect tee source, and fix use of mutable dom for tee source and request Signed-off-by: gterzian <[email protected]> * Fix typo that resolves multiple test failures in 'Tee' tests Signed-off-by: Taym <[email protected]> * Fix readable-streams/tee.any.js test Signed-off-by: Taym <[email protected]> --------- Signed-off-by: Taym <[email protected]> Signed-off-by: gterzian <[email protected]> Co-authored-by: gterzian <[email protected]> Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
…in default-reader.any.js (#34531) And fix crate::DomTypeHolder usage * Align ReadableStreamDefaultReader with spec and fix additional tests in default-reader.any.js Signed-off-by: Taym <[email protected]> * make reader rooted in Constructor and acquire_default_reader Signed-off-by: Taym <[email protected]> * Remove spaces Signed-off-by: Taym <[email protected]> --------- Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
* fetch stream chunks should be uint8 arrays Signed-off-by: gterzian <[email protected]> * fix clippy Signed-off-by: Taym Haddadi <[email protected]> --------- Signed-off-by: gterzian <[email protected]> Signed-off-by: Taym Haddadi <[email protected]> Co-authored-by: Taym Haddadi <[email protected]> Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
… one reason (#34560) Signed-off-by: gterzian <[email protected]> Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
Signed-off-by: Taym <[email protected]> Signed-off-by: Taym Haddadi <[email protected]>
Signed-off-by: Taym Haddadi <[email protected]>
Signed-off-by: Taym Haddadi <[email protected]>
* Fix compositeReason for DefaultTeeUnderlyingSource Signed-off-by: Taym Haddadi <[email protected]> * Update test Signed-off-by: Taym Haddadi <[email protected]> --------- Signed-off-by: Taym Haddadi <[email protected]>
* remove now unsused from_js method of readable stream * fix documenation of error steps * return type error instread of panicking on a todo, when trying to construct a stream of type bytes Signed-off-by: gterzian <[email protected]> --------- Signed-off-by: Gregory Terzian <[email protected]>
Signed-off-by: Gregory Terzian <[email protected]>
e028b12 to
11d511d
Compare
|
Rebased in hope that #34670 fixed the problem. |
|
@sagudev Thanks for the fix. |


First part of #29088
Corresponding to #32898
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors