Граф коммитов

228 Коммитов

Автор SHA1 Сообщение Дата
Tom Schuster d9a2cb4395 Bug 1735663 - Improve error messages for ReadableStreamDefaultController. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D135713
2022-01-12 19:15:39 +00:00
Matthew Gaudet 4be18c5628 Bug 1748032 - Correct, and document, lifetime management of QueueWithSizes elements r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D135622
2022-01-11 19:57:29 +00:00
Kagami Sascha Rosylight 0aa656fceb Bug 1748874 - Part 4: Move MOZ_CAN_RUN_SCRIPT to declarations in dom/streams r=mgaudet
Depends on D135403

Differential Revision: https://phabricator.services.mozilla.com/D135404
2022-01-07 20:46:19 +00:00
Kagami Sascha Rosylight a923f6b2ae Bug 1748728 - Correctly annotate WritableStreams implementation with CAN_RUN_SCRIPT r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D135228
2022-01-06 20:12:11 +00:00
Kagami Sascha Rosylight 1b1fa5ea28 Bug 1748866 - Remove unused RefPtr<WritableStream> r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D135242
2022-01-06 20:12:11 +00:00
Kagami Sascha Rosylight 6926867474 Bug 1737339 - Remove unistd.h from dom/streams r=mgaudet
The build goes well on Windows if it's excluded.

Differential Revision: https://phabricator.services.mozilla.com/D135163
2022-01-06 20:12:11 +00:00
Tom Schuster cd67315990 Bug 1748711 - Implement ReadableStreamHasBYOBReader. r=mgaudet
Depends on D135155

Differential Revision: https://phabricator.services.mozilla.com/D135156
2022-01-06 11:05:28 +00:00
Tom Schuster 6b5fda3568 Bug 1748711 - Fixup ReadableStream formatting and add missed step. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D135155
2022-01-06 11:05:27 +00:00
Tom Schuster 2f32241884 Bug 1734239 - Implement the CountQueuingStrategy size function. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D134916
2022-01-05 19:31:04 +00:00
Tom Schuster 1de3c481d6 Bug 1735663 - Improve ReadableStream.cancel error message. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D135114
2022-01-05 15:42:02 +00:00
Matthew Gaudet 8425a02f89 Bug 1741941 - Implement ReadableByteStreamTee r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131549
2022-01-04 22:33:24 +00:00
Matthew Gaudet 363163fe4f Bug 1741941 - Implement CloneAsUint8Array r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131548
2022-01-04 22:33:24 +00:00
Matthew Gaudet 09b2f010f5 Bug 1741941 - Add fields required for ReadableByteStreamTee to TeeState r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131547
2022-01-04 22:33:23 +00:00
Matthew Gaudet fd67c79e63 Bug 1741942 - Add Error algorithm r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131546
2022-01-04 22:33:23 +00:00
Matthew Gaudet e3f4641378 Bug 1741941 - Implement ReadableStreamBYOBReader r=smaug
Notably, this doesn't yet provide any mechanism for users to create user defined BYOB Readers

Differential Revision: https://phabricator.services.mozilla.com/D131545
2022-01-04 22:33:22 +00:00
Matthew Gaudet b2addbf3da Bug 1741941 - Store and Return GenericReader internal to ReadableStream and TeeState r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131543
2022-01-04 22:33:22 +00:00
Matthew Gaudet 6c2940583d Bug 1741941 - Add/Update Polymorphism code in ReadableStreamGenericReader in anticipation of ReadableStreamBYOBReader r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131542
2022-01-04 22:33:22 +00:00
Matthew Gaudet a0613926e6 Bug 1741941 - Add ReadableByteStreamController r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131541
2022-01-04 22:33:21 +00:00
Matthew Gaudet 844afd8bab Bug 1741941 - Update Step Numbering in ReadableStreamDefaultTee r=smaug
This should have been done in Bug 1736461 but got missed.

Differential Revision: https://phabricator.services.mozilla.com/D134081
2022-01-04 22:33:21 +00:00
Matthew Gaudet 856938e0a5 Bug 1741941 - Allow testing a ReadableStreamGenericReader for Default-ness (useful for building assertions) r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D131539
2022-01-04 22:33:20 +00:00
Tom Schuster 3b37b2b050 Bug 1735664 - Implement the WritableStream APIs. r=mgaudet,smaug
This is a complete implementation of WritableStreams including AbortSignal that weren't supported
by the SpiderMonkey implementation.

There are still some XXX comments, but an early review is probably better for this.

Differential Revision: https://phabricator.services.mozilla.com/D128419
2021-12-31 11:25:09 +00:00
Matthew Gaudet 4752460a3f Bug 1736461 - Update ReadableStream.tee implementation to match specification. r=smaug
Specification Change: https://github.com/whatwg/streams/commit/ea03a24d

Differential Revision: https://phabricator.services.mozilla.com/D129321
2021-11-15 22:01:39 +00:00
Matthew Gaudet 953178726d Bug 1736461 - Hoist some of ReadableStream.Tee implementation into its own file r=smaug
This is a minimal split to support updating ReadableStream.tee; we will soon
need to hold a reference to the pull algorithm in TeeState.

Differential Revision: https://phabricator.services.mozilla.com/D129320
2021-11-15 22:01:39 +00:00
Matthew Gaudet 36238d01ff Bug 1736461 - Add Promise::CreateResolvedWithUndefined to handle common patterm in Streams r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129319
2021-11-15 22:01:38 +00:00
Matthew Gaudet 2e40af0ddd Bug 1736461 - ReadableStreamDefaultReader was using incorrect cycle collection macro r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129318
2021-11-15 22:01:38 +00:00
Matthew Gaudet c1a03d89fa Bug 1735334 - Remove obsolete promise wrapping code r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129194
2021-10-22 13:24:57 +00:00
Matthew Gaudet 3f20b90025 Bug 1731070 - Implement ReadableStream.tee() r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126002
2021-10-06 18:43:02 +00:00
Matthew Gaudet 3bcfc27cef Bug 1730589 - Initial Implementation of ReadableStreams using WebIDL and DOM technologies r=smaug
This patch begins re-implements ReadableStreams using WebIDL and DOM technology (vs the existing JS streams implementation).   Some more background is [here](https://docs.google.com/document/d/1MWRkF32KV60ngOY-Ip4PnKbCMvl6VK_Y9QLED8MJJxg/edit#)

This is guarded under a configure flag `--enable-dom-streams`

1. ByteStreams and ReadableStream.tee will come in future patches.
2. I intentionally crash in other parts of the DOM that require streams (Fetch, Response, Blob), until the integration work is done in future patches.

   My current plan for that integration doesn't involve re-creating the alternative 'external streams' API from SpiderMonkey's implementation, but I have yet to do enough development to verify that will work.

Differential Revision: https://phabricator.services.mozilla.com/D122643
2021-10-06 18:43:01 +00:00