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

228 Коммитов

Автор SHA1 Сообщение Дата
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
Kagami Sascha Rosylight ac006ba3c4 Bug 1803386 - Part 1: Replace ReadableStream::mNativeUnderlyingSource with GetBodyStreamHolder() r=smaug
The underlying source algorithms class already has strong ref, so just use it.

Differential Revision: https://phabricator.services.mozilla.com/D166533
2023-01-12 13:43:58 +00:00
Matthew Gaudet 15d6982515 Bug 1807845 - Remove the dom.streams prefs r=evilpie,emilio
Differential Revision: https://phabricator.services.mozilla.com/D166203
2023-01-09 16:54:52 +00:00
Tom Schuster 8cf450c91a Bug 1734244 - Implement async iteration of ReadableStream. r=mgaudet,peterv
Differential Revision: https://phabricator.services.mozilla.com/D153312
2022-12-20 16:26:25 +00:00
Kagami Sascha Rosylight 27249f0e93 Bug 1803371 - Part 4: Add UnderlyingSourceAlgorithmsBase::ReleaseObjects r=smaug
The existing ErrorCallback is now renamed as ReleaseObjects and is called for any type of frozen streams caused by close/cancel/error.

BodyStream::ErrorPropagation used to call ErrorCallback via calling ReadableStreamError. Now ReadableStreamError does not call ErrorCallback anymore, so ErrorPropagation now has a bit more cleanup steps.

The cleanup steps in BodyStream::CancelCallback is replaced by CloseInputAndReleaseObjects which will be called by new UnderlyingSourceAlgorithmsBase::ReleaseObjects.

Differential Revision: https://phabricator.services.mozilla.com/D163528
2022-12-06 18:37:29 +00:00
Kagami Sascha Rosylight 26a1d85491 Bug 1803371 - Part 3: Add UnderlyingSinkAlgorithmBase::ReleaseObjects r=smaug
This is not used yet but is needed for OPFS file unlock.

Differential Revision: https://phabricator.services.mozilla.com/D163693
2022-12-06 18:37:28 +00:00
Kagami Sascha Rosylight b2ed4e37fe Bug 1803371 - Part 2: Move Readable{ByteStream,StreamDefault}Controller::mAlgorithms to ReadableStreamController r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D163692
2022-12-06 18:37:28 +00:00
Kagami Sascha Rosylight c19da7d46d Bug 1803371 - Part 1: Remove redundant ReadableStream::mAlgorithms r=smaug
ErrorCallback has surprisingly been broken as nothing currently set the algorithm with SetErrorAlgorithm. This patch removes the unused part, preparing another way in a child patch.

Differential Revision: https://phabricator.services.mozilla.com/D163691
2022-12-06 18:37:27 +00:00
Butkovits Atila 5286f45204 Backed out changeset 68ca2f48ea95 (bug 1734244) for causing leaks. CLOSED TREE 2022-12-06 18:22:43 +02:00
Tom Schuster a497727c1d Bug 1734244 - Implement async iteration of ReadableStream. r=mgaudet,peterv
Differential Revision: https://phabricator.services.mozilla.com/D153312
2022-12-06 12:46:44 +00:00
Butkovits Atila 886f3d36e7 Backed out changeset 2ce86a76d99d (bug 1734244) for causing wpt failures at RuntimeService.cpp 2022-12-01 15:19:16 +02:00
Tom Schuster 44008b5206 Bug 1734244 - Implement async iteration of ReadableStream. r=mgaudet,peterv
Differential Revision: https://phabricator.services.mozilla.com/D153312
2022-12-01 09:04:34 +00:00
Butkovits Atila 242a7308b4 Backed out changeset fd13db3ea2b3 (bug 1734244) for causing failures at idlharness-shadowrealm.window.html. CLOSED TREE 2022-12-01 08:16:58 +02:00
Tom Schuster 37f5b2a2a7 Bug 1734244 - Implement async iteration of ReadableStream. r=mgaudet,peterv
Differential Revision: https://phabricator.services.mozilla.com/D153312
2022-11-30 22:26:28 +00:00
Olli Pettay 73ed00444f Bug 1800470, make it possible to extend WritableStream with another cycle collectable class, r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D162287
2022-11-24 13:58:39 +00:00
Randell Jesup 1b6d10cb7a Bug 1790676: WebTransport DOM API initial framework r=saschanaz,necko-reviewers,emilio,valentin
This includes WebTransport, WebTransportSendStream,
WebTransportReceiveStreams, WebTransportBidirectionalStream and
WebTransportError classes without any actual functionality

Differential Revision: https://phabricator.services.mozilla.com/D162323
2022-11-22 13:43:57 +00:00
Cosmin Sabou 0480c1ce93 Backed out changeset 779cf97ae5de (bug 1800470) for crashtest failures on 1800470.html. CLOSED TREE 2022-11-18 01:09:55 +02:00
Olli Pettay 7042f2454c Bug 1800470, make it possible to extend WritableStream with another cycle collectable class, r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D162287
2022-11-17 21:32:57 +00:00
Jan Varga 72de9eab21 Bug 1799392 - Fix NS_INTERFACE_MAP_END_INHERITING usage; r=saschanaz,dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D161414
2022-11-08 00:32:38 +00:00
Jan Varga d1b9bdcfcc Bug 1798461 - Allow LastRelease definition in classes which inherit from WritableStream; r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D160896
2022-11-02 06:40:08 +00:00
Matthew Gaudet 242794868d Bug 1773237 - Mark ignored promise as handled to avoid spurious unhandled rejection error r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D158589
2022-10-24 19:53:15 +00:00
Mark Banner 2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Andrew McCreight b1fa3e3b36 Bug 1794811, part 1 - Include nsISupports.h instead of nsISupportsBase.h. r=necko-reviewers,nika,valentin
nsISupports.h includes nsISupportsBase.h, so it should be equivalent.

In the next patch, I'm changing things so that nsISupports is defined in
nsISupports.h instead of nsISupportsBase.h, and deleting the latter, so
this change will be needed anyways. I'm guessing people were using IWYU
or something like that.

Differential Revision: https://phabricator.services.mozilla.com/D159169
2022-10-17 16:09:22 +00:00