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

250 Коммитов

Автор SHA1 Сообщение Дата
Kagami Sascha Rosylight d4669f4fac Bug 1826537 - Part 2: Remove InputToReadableStreamAlgorithms::mState r=smaug
Repeating D169484.

Differential Revision: https://phabricator.services.mozilla.com/D174765
2023-04-13 11:22:54 +00:00
Kagami Sascha Rosylight b6100b0007 Bug 1826537 - Part 1: Return unsettled promise from InputToReadableStreamAlgorithms::PullCallbackImpl r=smaug
Repeating D169484 before merging those classes.

(Skipping AsyncWait cancellation as per Nika streams should not reject resubscription. I'll fix it separately.)

Differential Revision: https://phabricator.services.mozilla.com/D174764
2023-04-13 11:22:53 +00:00
Randell Jesup 23660aba47 Bug 1824225: Add support for Implicit/Explicit to ReadableStream r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D173525
2023-03-24 22:19:08 +00:00
Randell Jesup 8660a84df0 Bug 1820434: Isolate AsyncInputStream from InputToReadableStream for workers r=asuth
nsIAsyncInputStreams keep a reference to the callback object, causing
possible leaks which will result in assertions in workers.  Also use a
StrongWorkerRef to ensure the worker remains around until the
OnInputStreamReady callback occurs.

Differential Revision: https://phabricator.services.mozilla.com/D171810
2023-03-22 02:21:49 +00:00
Randell Jesup afa9194f5c Bug 1791835: Implement DOM API for datagrams in WebTransport r=saschanaz,smaug
This is the initial implementation without support for timeouts

Differential Revision: https://phabricator.services.mozilla.com/D170947
2023-03-22 02:21:48 +00:00
Cristian Tuns 387d191ab4 Backed out 6 changesets (bug 1820776, bug 1820434, bug 1822138, bug 1822038, bug 1821146, bug 1791835) for causing build bustages on WebTransportDatagramDuplexStream.cpp CLOSED TREE
Backed out changeset 4a866db45f1a (bug 1822038)
Backed out changeset 889174ce36fd (bug 1821146)
Backed out changeset 39f22b088301 (bug 1820434)
Backed out changeset c93fec9914f5 (bug 1822138)
Backed out changeset 914ee3f0f3ee (bug 1791835)
Backed out changeset 43beacf35d14 (bug 1820776)
2023-03-21 17:24:20 -04:00
Randell Jesup 5cc3dd1a03 Bug 1820434: Isolate AsyncInputStream from InputToReadableStream for workers r=asuth
nsIAsyncInputStreams keep a reference to the callback object, causing
possible leaks which will result in assertions in workers.  Also use a
StrongWorkerRef to ensure the worker remains around until the
OnInputStreamReady callback occurs.

Differential Revision: https://phabricator.services.mozilla.com/D171810
2023-03-21 16:09:09 +00:00
Randell Jesup 49aa9ebbc7 Bug 1791835: Implement DOM API for datagrams in WebTransport r=saschanaz,smaug
This is the initial implementation without support for timeouts

Differential Revision: https://phabricator.services.mozilla.com/D170947
2023-03-21 16:09:08 +00:00
Kagami Sascha Rosylight 0b8d79c640 Bug 1822675 - Part 1: Call write asynchronously from PipeToPump r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D172794
2023-03-21 09:03:04 +00:00
Kagami Sascha Rosylight 35fe8e091d Bug 1821563 - Do not create a promise from an uncatchable exception r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D172654
2023-03-15 14:38:05 +00:00
Kagami Sascha Rosylight 920138cd5c Bug 1822022 - Replace mfbt/FloatingPoint things with std cmath r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D172410
2023-03-14 07:48:34 +00:00
Peter Van der Beken 99238aafa7 Bug 1818630 - Crash in [@ mozilla::dom::ReadableStreamReaderGenericRelease]. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D172057
2023-03-09 07:56:34 +00:00
Iulian Moraru 154957c890 Backed out changeset 30075641dc6f (bug 1818576) for causing leaks. CLOSED TREE 2023-02-25 17:11:36 +02:00
Kagami Sascha Rosylight 17f87db988 Bug 1818576 - Double check whether the streams are locked before transfer r=evilpie
Status checks are done in batch before any transfer, but transferring streams can change the status of parent/child of TransformStream and cause an assertion failure.

Differential Revision: https://phabricator.services.mozilla.com/D170897
2023-02-25 07:04:33 +00:00
Kagami Sascha Rosylight f3b14eb3a6 Bug 1810942 - Mark ReadRequest::ChunkSteps as MOZ_CAN_RUN_SCRIPT r=evilpie
Simple enough as callers already are marked as MOZ_CAN_RUN_SCRIPT.

Differential Revision: https://phabricator.services.mozilla.com/D170879
2023-02-24 21:00:22 +00:00
Randell Jesup 9135a7e404 Bug 1811958: Implement IncomingUnidirectionalStreams and ReadableStreams supplied by it r=saschanaz,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D167619
2023-02-23 17:12:27 +00:00
Randell Jesup 05a8191c9c Bug 1814113: Add OutputByteWritableStreamsAlgorithm to be used for outgoing WebTransport streams r=saschanaz,nika
Differential Revision: https://phabricator.services.mozilla.com/D168408
2023-02-23 17:12:26 +00:00
Randell Jesup 70a879a3fb Bug 1815997: Add InputToReadableStream helpers r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D169415
2023-02-23 17:12:25 +00:00
Iulian Moraru e79cbd009c Backed out 14 changesets (bug 1815997, bug 1811624, bug 1814122, bug 1818074, bug 1815993, bug 1811958, bug 1814113, bug 1790678, bug 1817130, bug 1817129, bug 1814750, bug 1817521) for causing bp-hybrid build bustages related to WebTransport. CLOSED TREE
Backed out changeset 8cfdfa663856 (bug 1790678)
Backed out changeset 44f5c3b41dac (bug 1818074)
Backed out changeset debbb57f5328 (bug 1817130)
Backed out changeset 85dac52e3e4c (bug 1817521)
Backed out changeset ddb0ea4cdda2 (bug 1817129)
Backed out changeset 799ad4a11f33 (bug 1815993)
Backed out changeset fc263dcd3c5e (bug 1790678)
Backed out changeset 331d1209db0d (bug 1814113)
Backed out changeset 738d3cb6d163 (bug 1814122)
Backed out changeset 4c743c9e706a (bug 1814750)
Backed out changeset e7e0a6849e43 (bug 1811624)
Backed out changeset c8a708ab94c5 (bug 1811958)
Backed out changeset 62a3991715fb (bug 1814113)
Backed out changeset 85d446d9d20c (bug 1815997)
2023-02-23 06:07:49 +02:00
Randell Jesup e97d801080 Bug 1811958: Implement IncomingUnidirectionalStreams and ReadableStreams supplied by it r=saschanaz,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D167619
2023-02-23 01:46:54 +00:00
Randell Jesup 92d32428b7 Bug 1814113: Add OutputByteWritableStreamsAlgorithm to be used for outgoing WebTransport streams r=saschanaz,nika
Differential Revision: https://phabricator.services.mozilla.com/D168408
2023-02-23 01:46:54 +00:00
Randell Jesup eeed247450 Bug 1815997: Add InputToReadableStream helpers r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D169415
2023-02-23 01:46:53 +00:00
Kagami Sascha Rosylight 114b7eac32 Bug 1816075 - Add ReadableStream::SetUpByteNative r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D169439
2023-02-13 13:36:34 +00:00
Kagami Sascha Rosylight 857db85b03 Bug 1809408 - Part 3: Move TransformStream internal algorithms to internal namespace r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D167929
2023-02-07 11:56:06 +00:00
Kagami Sascha Rosylight 938c3b15c9 Bug 1809408 - Part 2: Move WritableStream internal algorithms to internal namespace r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D167829
2023-02-07 11:56:06 +00:00
Kagami Sascha Rosylight d8983d750a Bug 1809408 - Part 1: Move ReadableStream internal algorithms to internal namespace r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D167782
2023-02-07 11:56:05 +00:00
Marian-Vasile Laza c81ee207b9 Backed out 3 changesets (bug 1809408) for bustages on ReadableStreamBYOBRequest.cpp. CLOSED TREE
Backed out changeset 7b9ab840dcf1 (bug 1809408)
Backed out changeset 38da95750e3f (bug 1809408)
Backed out changeset 7bc810a8e68a (bug 1809408)
2023-02-06 17:23:47 +02:00
Kagami Sascha Rosylight 522eb49150 Bug 1809408 - Part 3: Move TransformStream internal algorithms to internal namespace r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D167929
2023-02-06 13:12:54 +00:00
Kagami Sascha Rosylight c179f07a87 Bug 1809408 - Part 2: Move WritableStream internal algorithms to internal namespace r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D167829
2023-02-06 13:12:53 +00:00
Kagami Sascha Rosylight 52e47aa89c Bug 1809408 - Part 1: Move ReadableStream internal algorithms to internal namespace r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D167782
2023-02-06 13:12:53 +00:00
Kagami Sascha Rosylight 87acb08988 Bug 1814625 - Part 2: Add WritableStream::CreateNative r=smaug
Not used yet, but requested by WebTransport.

Differential Revision: https://phabricator.services.mozilla.com/D168671
2023-02-02 20:43:16 +00:00
Kagami Sascha Rosylight 38f09a485c Bug 1814625 - Part 1: Implement default no-op implementations for optional algorithms r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D168670
2023-02-02 20:43:15 +00:00
Kagami Sascha Rosylight 3387bc0bd4 Bug 1814644 - Remove GetIncumbentGlobal use in SetUpReadableByteStreamController r=smaug
That was the only case that Promise::CreateInfallible may possibly get nullptr in dom/streams case, so it now just asserts the existence of nsIGlobalObject.

Differential Revision: https://phabricator.services.mozilla.com/D168678
2023-02-02 20:41:28 +00:00
Kagami Sascha Rosylight 98c86fef45 Bug 1811538 - Part 3: Remove ErrorResult that became redundant r=smaug
Some spec comments now matches the implementations (as `Perform ! Foo()` means Foo can't fail).

This only covers a small part of actual redundant ErrorResult parameters because:

1. This patch stack only covers Promise::CreateFallible and does not cover helper functions e.g. Promise::CreateResolvedWithUndefined.
2. All callback calls still require ErrorResult as the IDL layer uses the existing Promise::Create

Differential Revision: https://phabricator.services.mozilla.com/D167701
2023-01-31 19:21:35 +00:00
Kagami Sascha Rosylight ea0cb48ccd Bug 1811538 - Part 2: Use Promise::CreateInfallible in dom/streams r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D167697
2023-01-31 19:21:35 +00:00
Kagami Sascha Rosylight ad248024a6 Bug 1812315 - Part 2: Implement ReadableStream::CreateNative and WritableStream::ErrorNative for WebTransport r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D167825
2023-01-31 17:31:09 +00:00
Kagami Sascha Rosylight d377991e6f Bug 1812315 - Part 1: Implement WritableStream::SetUpNative for File System r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D167824
2023-01-31 17:31:08 +00:00
Iulian Moraru a8e5bce81b Backed out 3 changesets (bug 1811538) for causing build bustages on Promise.cpp. CLOSED TREE
Backed out changeset 0a665be7896a (bug 1811538)
Backed out changeset b949053bae31 (bug 1811538)
Backed out changeset 57d4dbe88611 (bug 1811538)
2023-01-31 19:00:59 +02:00
Kagami Sascha Rosylight 19a91ef6e4 Bug 1811538 - Part 3: Remove ErrorResult that became redundant r=smaug
Some spec comments now matches the implementations (as `Perform ! Foo()` means Foo can't fail).

This only covers a small part of actual redundant ErrorResult parameters because:

1. This patch stack only covers Promise::CreateFallible and does not cover helper functions e.g. Promise::CreateResolvedWithUndefined.
2. All callback calls still require ErrorResult as the IDL layer uses the existing Promise::Create

Differential Revision: https://phabricator.services.mozilla.com/D167701
2023-01-31 15:49:08 +00:00
Kagami Sascha Rosylight 2c64928874 Bug 1811538 - Part 2: Use Promise::CreateInfallible in dom/streams r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D167697
2023-01-31 15:49:07 +00:00
Kagami Sascha Rosylight a3c29544be Bug 1810759 - Replace ReadableStream internal algorithm uses in Fetch r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D167370
2023-01-24 14:52:03 +00:00
Kagami Sascha Rosylight 0e3826d472 Bug 1811868 - Move Stream() to ReadableStreamController r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D167572
2023-01-24 11:32:21 +00:00
Kagami Sascha Rosylight b1c436975f Bug 1809895 - Part 4: Implement ReadableStream::ErrorNative and use it in BodyStream r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D166922
2023-01-17 14:59:29 +00:00
Kagami Sascha Rosylight db1b686751 Bug 1809895 - Part 3: Create BodyStream internal stream using ReadableStream::CreateByteNative r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D166807
2023-01-17 14:59:28 +00:00
Kagami Sascha Rosylight e192f7798c Bug 1809895 - Part 2: Implement ReadableStream::CreateByteNative r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D166806
2023-01-17 14:59:28 +00:00
Kagami Sascha Rosylight b6f871ac8b Bug 1809895 - Part 1: Move PromisifyAlgorithm to StreamUtils.h r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D166805
2023-01-17 14:59:28 +00:00
Kagami Sascha Rosylight 2ca3fe141f Bug 1810261 - Move the CancelCallback impl to BodyStreamUnderlyingSourceAlgorithms r=evilpie
It simply just returns a promise, no need to define another method for that.

Differential Revision: https://phabricator.services.mozilla.com/D166913
2023-01-16 17:26:56 +00:00
Kagami Sascha Rosylight f717bd5938 Bug 1810152 - Remove internal-only stream headers from moz.build r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D166794
2023-01-13 17:05:18 +00:00
Kagami Sascha Rosylight 75840a86f9 Bug 1809673 - Part 1: Stop using stream internal algorithms from BodyStream r=smaug,evilpie
This adds some of the public helper functions for ReadableStream provided by the spec, that are needed for BodyStream.

Differential Revision: https://phabricator.services.mozilla.com/D166663
2023-01-12 17:27:20 +00:00
Kagami Sascha Rosylight 2ac5fcd132 Bug 1803386 - Part 2: Remove ReadableStream::ReleaseObjectsFromBodyStream r=smaug
No point to release a stream holder that is then nullified. Holding an empty holder is totally fine.

Differential Revision: https://phabricator.services.mozilla.com/D166534
2023-01-12 13:43:59 +00:00