Commit graph

87 commits

Author SHA1 Message Date
Tom Schuster
918d6e00af Bug 1772772 - Implement ReadableStream.from. r=saschanaz,spidermonkey-reviewers,webidl,mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D148358
2023-07-04 16:48:23 +00:00
Kagami Sascha Rosylight
a4d1b9a483 Bug 1811440 - Part 2: Implement pull-from-bytes algorithm for InputToReadableStreamAlgorithms r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D170499
2023-06-15 01:31:28 +00:00
Kagami Sascha Rosylight
8457638963 Bug 1811882 - Part 5: Remove BodyStream in favor of InputToReadableStreamAlgorithms r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D178360
2023-06-06 13:07:47 +00:00
Kagami Sascha Rosylight
ff5f4bdbb7 Bug 1819124 - Mark "native" stream constructors as MOZ_CAN_RUN_SCRIPT_BOUNDARY r=smaug
It's marked as can-run-script because of StartCallback, but Underlying{Source/Sink}AlgorithmsWrapper::StartCallback is empty and thus can't run any scripts.

Differential Revision: https://phabricator.services.mozilla.com/D178356
2023-06-06 13:07:45 +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
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
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
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
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
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
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
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
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
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
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
Kagami Sascha Rosylight
a97d8ed581 Bug 1783664 - Add Promise::CreateRejected r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D154104
2022-08-09 18:36:02 +00:00
Kagami Sascha Rosylight
5bf1db4f71 Bug 1769290 - Part 1: Apply mozilla-js-handle-rooted-typedef against dom/streams r=smaug
Changes done by `./mach static-analysis check --checks="-*,mozilla-js-handle-rooted-typedef" --fix --header-filter=dom dom/streams; ./mach clang-format --outgoing`.

Differential Revision: https://phabricator.services.mozilla.com/D146329
2022-05-18 08:43:08 +00:00
Jon Coppeard
79f031217b Bug 1761938 - Part 3: Remove global from the module map key and use URI only r=yulia
Since content scripts have separate module loaders there's no need to key the
module map on the global any more.

Differential Revision: https://phabricator.services.mozilla.com/D142830
2022-04-11 15:35:29 +00:00
Kagami Sascha Rosylight
7ab54f27f1 Bug 1759690 - Part 5: Use lambda promise callbacks in dom/streams r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D141162
2022-03-21 16:45:37 +00:00
Kagami Sascha Rosylight
d6416abbe8 Bug 1759690 - Part 1: Support ErrorResult on ThenWithCycleCollectedArgs r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D141160
2022-03-21 16:45:35 +00:00
Kagami Sascha Rosylight
20c42e5fc4 Bug 1757808 - Part 2: Merge SourceCallback classes as UnderlyingSourceAlgorithms r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D140281
2022-03-08 19:29:14 +00:00
Bryan Thrall
106b78552f Bug 1734174 - Remove unneeded JSContext from TeeState r=mgaudet
Depends on D139873

Differential Revision: https://phabricator.services.mozilla.com/D139874
2022-02-28 22:31:42 +00:00
Bryan Thrall
3ad42458de Bug 1734174 - Remove unneeded implicitJSContext from ReadableStream::GetReader() r=mgaudet
Depends on D139872

Differential Revision: https://phabricator.services.mozilla.com/D139873
2022-02-28 22:31:42 +00:00
Bryan Thrall
44b065fd5a Bug 1734174 - Remove unneeded JSContext parameter from AcquireReadableStreamDefaultReader() r=mgaudet
Depends on D139871

Differential Revision: https://phabricator.services.mozilla.com/D139872
2022-02-28 22:31:41 +00:00
Bryan Thrall
d642cee2f5 Bug 1734174 - Remove unneeded JSContext parameter to AcquireReadableStreamBYOBReader() r=mgaudet
Depends on D139870

Differential Revision: https://phabricator.services.mozilla.com/D139871
2022-02-28 22:31:41 +00:00
Bryan Thrall
b3c6f204b0 Bug 1734174 - Remove unneeded JSContext parameter from SetUpReadableStreamDefaultReader() r=mgaudet
Depends on D139868

Differential Revision: https://phabricator.services.mozilla.com/D139869
2022-02-28 22:31:40 +00:00
Kagami Sascha Rosylight
74e63f3f40 Bug 1734243 - Part 2: Implement ReadableStream#pipeThrough r=mgaudet,evilpie,emilio
Differential Revision: https://phabricator.services.mozilla.com/D139506
2022-02-25 20:11:40 +00:00
Kagami Sascha Rosylight
12776d464b Bug 1755594 - Part 2: Apply NS_IMPL_CYCLE_COLLECTION_WITH_JS_MEMBERS to dom/streams/ r=mgaudet,smaug
Depends on D138903

Differential Revision: https://phabricator.services.mozilla.com/D138869
2022-02-23 13:44:01 +00:00
Csoregi Natalia
dafaf9d404 Backed out 2 changesets (bug 1755594) for causing bp-hybrid bustage on TeeState.cpp. CLOSED TREE
Backed out changeset 82a58b494f74 (bug 1755594)
Backed out changeset b347a6be8478 (bug 1755594)
2022-02-23 04:25:02 +02:00