Shannon Booth
0f040456a7
LibWeb: Add ReadableStreamGetReaderOptions to ReadableStream.getReader
...
Co-Authored-By: Matthew Olsson <mattco@serenityos.org>
2023-07-05 23:33:20 +01:00
Shannon Booth
4f217947b3
LibWeb: Implement QueuingStrategy for Web::Streams::ReadableStream
2023-06-23 13:27:29 +02:00
Shannon Booth
e1d71454eb
LibWeb: Correct parameter name in Web::Streams::ReadableStream::cancel
...
This aligns with the name given in the implementation file and is a
better description of what is being passed in.
2023-06-22 06:58:23 +02:00
Shannon Booth
314eeeb9b2
LibWeb: Const qualify Web::Streams::ReadableStream::locked
2023-06-22 06:58:23 +02:00
Matthew Olsson
b57b3c54cc
LibWeb: Add ReadableStreamBYOBReader to ReadableStreamReader type
2023-04-27 07:57:53 +02:00
Matthew Olsson
f9d6a161e8
LibWeb: Add ByteStreamController to ReadableStreamController type
2023-04-14 13:03:34 +02:00
Matthew Olsson
8274906301
LibWeb: Expose ReadableStream::m_state and use in AOs
...
This allows us to be a bit closer to the spec phrasing and matches
what we do with WritableStream
2023-04-14 13:03:34 +02:00
Matthew Olsson
36ca1386e8
LibWeb: Add ReadableStream.locked/cancel()/getReader()
2023-04-01 23:43:07 +01:00
Matthew Olsson
d8710aa604
LibWeb: Implement ReadableStream's constructor
2023-04-01 23:43:07 +01:00
Matthew Olsson
bc9919178e
LibWeb: Add ReadableStreamDefaultController
2023-04-01 23:43:07 +01:00
Matthew Olsson
222e3c32cd
LibWeb: Add ReadableStreamDefaultReader
2023-04-01 23:43:07 +01:00
Matthew Olsson
fe69d66a4e
LibWeb: Add the ReadableStreamGenericReader mixin interface
2023-04-01 23:43:07 +01:00
Timothy Flynn
2692db8699
LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors
...
Note that as of this commit, there aren't any such throwers, and the
call site in Heap::allocate will drop exceptions on the floor. This
commit only serves to change the declaration of the overrides, make sure
they return an empty value, and to propagate OOM errors frm their base
initialize invocations.
2023-01-29 00:02:45 +00:00
Timothy Flynn
834202aeb9
LibWeb: Move setting of Web object prototypes to initialize()
...
This needs to happen before prototype/constructor intitialization can be
made lazy. Otherwise, GC could run during the C++ constructor and try to
collect the object currently being created.
2023-01-10 16:08:14 +01:00
Linus Groh
0db55693a9
LibWeb: Fix ReadableStream's WEB_PLATFORM_OBJECT() class name
2022-10-04 20:05:09 +01:00
Andrew Kaster
4bb6345b2f
LibWeb: Remove unecessary dependence on Window from assorted classes
...
These classes only needed Window to get at its realm. Pass a realm
directly to construct Crypto, Encoding, HRT, IntersectionObserver,
NavigationTiming, Page, RequestIdleCallback, Selection, Streams, URL,
and XML classes.
2022-10-01 21:05:32 +01:00
Linus Groh
ad04d7ac9b
LibWeb: Move ExceptionOr from DOM/ to WebIDL/
...
This is a concept fully defined in the Web IDL spec and doesn't belong
in the DOM directory/namespace - not even DOMException, despite the name
:^)
2022-09-25 19:13:31 +01:00
Linus Groh
87654f5b51
LibWeb: Start fleshing out the ReadableStream interface
...
This is so we can just assume it exists in Fetch APIs (while still
skipping functionality that relies on a full implementation, of
course).
2022-09-22 21:01:13 +01:00