Andrei Volykhin
|
a5b02047f9
|
script: Allow to throw a custom exception on structured cloning (#37948)
The structured cloning with transfer list
https://html.spec.whatwg.org/multipage/#structuredserializewithtransfer
throws a "DataCloneError" DOM expection by default if
serialization/transferral
is not possible, but a platform object can throw a custom excepton on
its serialization/transfer steps.
One example is OffscreenCanvas, which can throw
an "InvalidStateError" exception if the context mode is not none on
transfer steps.
https://html.spec.whatwg.org/multipage/#the-offscreencanvas-interface:transfer-steps
Testing: Improvements in the following tests
-
html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.transferrable*
Fixes: #37919
Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
|
2025-07-09 11:43:09 +00:00 |
|
Gregory Terzian
|
730fe35b42
|
AbortController: integrate with stream piping. (#37244)
Start using abort signal in Use in
https://streams.spec.whatwg.org/#readablestream-pipe-to-signal
Part of https://github.com/servo/servo/issues/34866
Will also cover https://github.com/servo/servo/issues/37230 and
https://github.com/servo/servo/issues/37232
---------
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
|
2025-06-13 09:52:38 +00:00 |
|
Jason Tsai
|
d76b4a14df
|
refactor: merge cross_realm_transform_* fields into one (#37102)
In https://github.com/servo/servo/pull/36977, when transferring
`TransformStream`, `CrossRealmTransform::Writable` and
`CrossRealmTransform::Readable` are set to different message ports. The
message port will not be readable and writable at the same time when
transferring the stream, so we can now merge
`cross_realm_transform_readable` and `cross_realm_transform_writable`
into a single field `cross_realm_transform`.
Testing: WPT ([passed on try
branch](https://github.com/pewsheen/servo/actions/runs/15209389525/job/42784179519))
Fixes: https://github.com/servo/servo/issues/37084
---------
Signed-off-by: Jason Tsai <git@pews.dev>
|
2025-05-27 02:27:13 +00:00 |
|
Taym Haddadi
|
5b2305784a
|
Stream implement pipeThrough (#36977)
Part of https://github.com/servo/servo/issues/34676
https://github.com/servo/servo/pull/36905 needs to be merged first.
---------
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
|
2025-05-20 14:33:22 +00:00 |
|
Taym Haddadi
|
62569979ff
|
Make transform stream transferrable (#36905)
Part of https://github.com/servo/servo/issues/34676
#36739 needs to be merged first.
---------
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
|
2025-05-12 16:02:06 +00:00 |
|
Taym Haddadi
|
f3f4cc5500
|
Script implement TransformStream and TransformStreamDefaultController (#36739)
Part of https://github.com/servo/servo/issues/34676
---------
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
Signed-off-by: Taym <haddadi.taym@gmail.com>
Co-authored-by: gterzian <2792687+gterzian@users.noreply.github.com>
|
2025-05-08 08:45:57 +00:00 |
|