Iulian Moraru
a5c24d7dff
Backed out changeset 2a6a62b9c73d (bug 1763142) for causing build bustages on TransformStream.cpp. CLOSED TREE
2022-04-06 19:36:40 +03:00
Kagami Sascha Rosylight
fc00d06eab
Bug 1763142 - Implement transform sink/source algorithms r=mgaudet,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D142228
2022-04-06 13:09:54 +00:00
Matthew Gaudet
6ec91fd78a
Bug 1761483 - Fix integer truncation bug in DOM Streams r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D142289
2022-04-05 19:15:26 +00:00
Kagami Sascha Rosylight
def205fdcd
Bug 1734886 - Part 8: Implement TransformStreamDefaultController methods r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D142013
2022-03-30 06:31:58 +00:00
Kagami Sascha Rosylight
ffbb9e4fc5
Bug 1734886 - Part 7: Implement TransformStreamDefaultController::GetDesiredSize r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D141975
2022-03-25 11:22:41 +00:00
Kagami Sascha Rosylight
691275db53
Bug 1734886 - Part 6: Store FlushCallback in TransformStream r=mgaudet
...
This itself does not provide any additional feature, since nothing uses the callbacks yet.
Differential Revision: https://phabricator.services.mozilla.com/D141974
2022-03-25 11:22:41 +00:00
criss
79c266123a
Backed out 2 changesets (bug 1734886) for causing hybrid bustages in TransformerCallbackHelpers. CLOSED TREE
...
Backed out changeset e02ef90f9411 (bug 1734886)
Backed out changeset b01ead158136 (bug 1734886)
2022-03-25 09:27:19 +02:00
Kagami Sascha Rosylight
9fd10f1f1a
Bug 1734886 - Part 7: Implement TransformStreamDefaultController::GetDesiredSize r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D141975
2022-03-24 23:57:34 +00:00
Kagami Sascha Rosylight
7db2329705
Bug 1734886 - Part 6: Store FlushCallback in TransformStream r=mgaudet
...
This itself does not provide any additional feature, since nothing uses the callbacks yet.
Differential Revision: https://phabricator.services.mozilla.com/D141974
2022-03-24 23:57:34 +00:00
Kagami Sascha Rosylight
c87ce3dd2f
Bug 1734886 - Part 5: Implement InitializeTransformStream r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D140377
2022-03-23 23:30:47 +00:00
Butkovits Atila
014927888b
Backed out changeset 544d6892423d (bug 1734886) for causing failures attransform-stream.html. CLOSED TREE
2022-03-24 00:29:41 +02:00
Kagami Sascha Rosylight
17e9dc73de
Bug 1734886 - Part 5: Implement InitializeTransformStream r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D140377
2022-03-23 20:58:49 +00:00
Butkovits Atila
3a16749123
Backed out changeset 32e1a02fdd2c (bug 1734886) for causing bustages. CLOSED TREE
2022-03-23 21:39:33 +02:00
Kagami Sascha Rosylight
08436968fa
Bug 1734886 - Part 5: Implement InitializeTransformStream r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D140377
2022-03-23 19:05:09 +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
Tom Schuster
c95981f8a5
Bug 1750298 - Use custom ReadRequest for FetchStreamReader. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D137681
2022-03-18 17:46:32 +00:00
Marian-Vasile Laza
4539e13af2
Backed out 4 changesets (bug 1759690) for causing bustages on ReadableByteStreamController.cpp. CLOSED TREE
...
Backed out changeset 277201c19ef2 (bug 1759690)
Backed out changeset 809bdffb2aaf (bug 1759690)
Backed out changeset 6c80dea23925 (bug 1759690)
Backed out changeset 34e9e4bf15a4 (bug 1759690)
2022-03-18 09:58:44 -07:00
Kagami Sascha Rosylight
7bfa026475
Bug 1759690 - Part 4: Use NativeThenHandler in dom/streams r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D141162
2022-03-18 14:38:24 +00:00
Kagami Sascha Rosylight
9e17b138ce
Bug 1759690 - Part 1: Support ErrorResult on ThenWithCycleCollectedArgs r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D141160
2022-03-18 14:38:23 +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
Kagami Sascha Rosylight
63aa317d94
Bug 1757808
- Part 1: Merge SinkCallback classes as UnderlyingSinkAlgorithms r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D140280
2022-03-08 19:29:13 +00:00
Kagami Sascha Rosylight
7d833e9c2e
Bug 1757633 - Move PipeToPump from header to cpp r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D139973
2022-03-02 01:32:04 +00:00
Kagami Sascha Rosylight
785d34c9fa
Bug 1757653 - Remove redundant `extern`s in dom/streams r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D139991
2022-03-02 01:31:26 +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
2afb0c77de
Bug 1734174 - Remove unneeded JSContext parameter from SetUpReadableStreamBYOBReader() r=mgaudet
...
Depends on D139869
Differential Revision: https://phabricator.services.mozilla.com/D139870
2022-02-28 22:31:40 +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
Bryan Thrall
914e377cf3
Bug 1734174 - Remove unneeded JSContext parameter to ReadableStreamReaderGenericInitialize() r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D139868
2022-02-28 22:31:40 +00:00
Kagami Sascha Rosylight
36f686b84b
Bug 1734886 - Part 4: Add missing reference symbol & CLOSED TREE
...
Differential Revision: https://phabricator.services.mozilla.com/D139781
2022-02-26 00:25:38 +00:00
Kagami Sascha Rosylight
331f36183b
Bug 1734886 - Part 3: Add [[transformAlgorithm]] internal slot r=mgaudet
...
Depends on D138869
Differential Revision: https://phabricator.services.mozilla.com/D139308
2022-02-25 22:58:49 +00:00
Kagami Sascha Rosylight
c3eb3e00da
Bug 1734243
- Part 4: Add missing AbortSignal header in PipeTo. CLOSED TREE
...
Differential Revision: https://phabricator.services.mozilla.com/D139774
2022-02-25 22:49:45 +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
Marian-Vasile Laza
acfb3e797d
Merge autoland to mozilla-central. a=merge
2022-02-23 19:49:43 -08: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
Kagami Sascha Rosylight
bb8f5fc455
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 01:20:26 +00:00
Yulia Startsev
79409316d1
Bug 1742437 - re-scope all generic module/script loader files under js/loader; r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D138133
2022-02-21 15:39:09 +00:00
Kagami Sascha Rosylight
2639916e98
Bug 1755986 - Part 3: Apply manual fixes for static analysis warnings r=mgaudet
...
dom/streams were added while being disabled by default, so the static analysis bot never had the chance to warn about them.
Differential Revision: https://phabricator.services.mozilla.com/D139074
2022-02-18 22:56:33 +00:00
Kagami Sascha Rosylight
b974d2544e
Bug 1755986 - Part 2: Apply modernize-use-override autofixes to dom/streams r=mgaudet
...
Ran `./mach static-analysis check --fix --check=modernize-use-override "--header-filter=mozilla/dom/" dom/streams/` and added only streams headers.
Differential Revision: https://phabricator.services.mozilla.com/D139056
2022-02-18 22:56:33 +00:00
Kagami Sascha Rosylight
5ed1a318dd
Bug 1755986 - Part 1: Apply static-analysis autofixes to dom/streams r=mgaudet
...
Ran `./mach static-analysis check --fix "--header-filter=mozilla/dom/" dom/streams/` and added only streams headers.
Differential Revision: https://phabricator.services.mozilla.com/D139055
2022-02-18 22:56:33 +00:00
Tom Schuster
889568f158
Bug 1734241 - Try to work around a GCC issue
...
Differential Revision: https://phabricator.services.mozilla.com/D139115
2022-02-18 14:29:15 +00:00
smolnar
88503e9cc6
Backed out 12 changesets (bug 1742437) for causing build bustages in dom/script/ScriptTrace.h CLOSED TREE
...
Backed out changeset c11cffaded9c (bug 1742437)
Backed out changeset 0527d227c6b6 (bug 1742437)
Backed out changeset 967e68ed5f56 (bug 1742437)
Backed out changeset 22649272ffae (bug 1742437)
Backed out changeset e3fe772947bf (bug 1742437)
Backed out changeset 467f757b6580 (bug 1742437)
Backed out changeset bf411e44f622 (bug 1742437)
Backed out changeset 130bd544f3f4 (bug 1742437)
Backed out changeset ea775927f4ab (bug 1742437)
Backed out changeset c33b42cabd55 (bug 1742437)
Backed out changeset 0a3d9301244b (bug 1742437)
Backed out changeset 46d45c7bae2f (bug 1742437)
2022-02-18 15:14:56 +02:00
Yulia Startsev
bb2c17bae7
Bug 1742437 - re-scope all generic module/script loader files under js/loader; r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D138133
2022-02-18 12:45:53 +00:00
Tom Schuster
7e06e476d4
Bug 1734241 - Implement ReadableStream.pipeTo. r=smaug,mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D135448
2022-02-18 10:30:15 +00:00
Iulian Moraru
9807ab4555
Backed out changeset 21d7dfa0dfee (bug 1734241) for causing bp-hybrid bustages on ReadableStreamPipeTo.cpp. CLOSED TREE
2022-02-18 02:51:13 +02:00
Tom Schuster
df8616f118
Bug 1734241 - Implement ReadableStream.pipeTo. r=smaug,mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D135448
2022-02-17 21:49:43 +00:00
Norisz Fay
4c85ac47c5
Backed out 12 changesets (bug 1742437) for causing Bp-hybrid bustages on ModuleLoader.obj
...
Backed out changeset 7d5683180ac3 (bug 1742437)
Backed out changeset a48aff5f2555 (bug 1742437)
Backed out changeset 7e54a223001d (bug 1742437)
Backed out changeset 3a34d557d474 (bug 1742437)
Backed out changeset f29451ea18dc (bug 1742437)
Backed out changeset c0bd1d29be62 (bug 1742437)
Backed out changeset 8b970fb6e4e6 (bug 1742437)
Backed out changeset 729c48e34d6b (bug 1742437)
Backed out changeset 9355004c7f6a (bug 1742437)
Backed out changeset 0a5f61274aed (bug 1742437)
Backed out changeset a50f60a612d3 (bug 1742437)
Backed out changeset 0ac6d9d26e2b (bug 1742437)
2022-02-18 00:00:41 +02:00
Yulia Startsev
499559431e
Bug 1742437 - re-scope all generic module/script loader files under js/loader; r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D138133
2022-02-17 15:57:52 +00:00
Kagami Sascha Rosylight
6f1148ff06
Bug 1734886 - Part 2: Initialize [[controller]] slot of TransformStream r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D138826
2022-02-17 01:40:08 +00:00
Kagami Sascha Rosylight
45d9dcc52b
Bug 1734886 - Part 1: Throw when readably/writableType fields exist r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D138825
2022-02-17 01:40:08 +00:00
Butkovits Atila
03a020af3e
Backed out 2 changesets (bug 1734886) for causing Hazard bustages at TransformStream.cpp. CLOSED TREE
...
Backed out changeset 874b3fe4de86 (bug 1734886)
Backed out changeset 9d43d0e3ba23 (bug 1734886)
2022-02-17 01:18:31 +02:00
Matthew Gaudet
cff5bbe644
Bug 1506681 - Add test for array buffer size limitations in BYOB Readable byte streams r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D138952
2022-02-16 22:33:51 +00:00
Matthew Gaudet
74f1c05adb
Bug 1734656 - Remove incorrect comment r=saschanaz DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D138955
2022-02-16 22:26:48 +00:00
Kagami Sascha Rosylight
a14deb0e24
Bug 1734886 - Part 2: Initialize [[controller]] slot of TransformStream r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D138826
2022-02-16 20:40:03 +00:00
Kagami Sascha Rosylight
e717ac6d07
Bug 1734886 - Part 1: Throw when readably/writableType fields exist r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D138825
2022-02-16 20:40:03 +00:00
Kagami Sascha Rosylight
a7a6e060cf
Bug 1755335 - Add skeleton code for TransformStream{,DefaultController} r=mgaudet,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D138672
2022-02-15 01:43:00 +00:00
Noemi Erli
dde4c6d4c6
Backed out changeset c5467bc3fb5a (bug 1755335) for causing bustage in WritableStreamDefaultWriter.cpp CLOSED TREE
2022-02-15 02:28:30 +02:00
Kagami Sascha Rosylight
48750a127c
Bug 1755335 - Add skeleton code for TransformStream{,DefaultController} r=mgaudet,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D138672
2022-02-14 23:35:53 +00:00
Cristian Tuns
de7fa4b360
Backed out changeset b2749184f16a (bug 1755335) for causing build bustages on TransformStream.webidl CLOSED TREE
2022-02-14 17:43:19 -05:00
Kagami Sascha Rosylight
93f704f156
Bug 1755335 - Add skeleton code for TransformStream{,DefaultController} r=mgaudet,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D138672
2022-02-14 22:25:11 +00:00
Tom Schuster
8fd8ae0f82
Bug 1754912 - Root ReadableStreamBYOBReadResult. r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D138565
2022-02-11 20:24:23 +00:00
Matthew Gaudet
dc1e7f435d
Bug 1752206
- Add missing RootedDictionary include to make non-unified build work r=evilpie
...
Differential Revision: https://phabricator.services.mozilla.com/D138470
2022-02-10 19:01:35 +00:00
Matthew Gaudet
1986825a79
Bug 1754300 - Root Underlying source dict in ReadableStreams r=sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D138338
2022-02-10 15:54:51 +00:00
Matthew Gaudet
a60d34df1d
Bug 1754251
- Add dictionary rooting to DOM Streams that was missed r=sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D138171
2022-02-10 15:54:51 +00:00
Matthew Gaudet
efe0c5105c
Bug 1754088 - Fix DOM Streams compilation under GCC r=evilpie
...
Differential Revision: https://phabricator.services.mozilla.com/D138075
2022-02-09 08:16:05 +00:00
criss
00c2091ed9
Backed out 3 changesets (bug 1752206
, bug 1754088) for causing failures on testReadableStream.cpp
...
Backed out changeset bf7e7a03d4bb (bug 1752206
)
Backed out changeset e53660b82b9a (bug 1752206
)
Backed out changeset 2f006f71ce1e (bug 1754088)
2022-02-08 19:44:43 +02:00
Kagami Sascha Rosylight
ce65c87a1c
Bug 1752662 - Use enum class TeeBranch instead of boolean/integer r=evilpie
...
Differential Revision: https://phabricator.services.mozilla.com/D138137
2022-02-08 16:37:45 +00:00
Matthew Gaudet
89b3142f51
Bug 1754088 - Fix DOM Streams compilation under GCC r=evilpie
...
Differential Revision: https://phabricator.services.mozilla.com/D138075
2022-02-08 15:23:51 +00:00
Tom Schuster
fee7641cc0
Bug 1752695 - Reject pending reads when releasing reader. r=mgaudet DONTBUILD
...
This implements the changes from https://github.com/whatwg/streams/pull/1168 .
Differential Revision: https://phabricator.services.mozilla.com/D137382
2022-02-06 10:11:53 +00:00
Kagami Sascha Rosylight
ef1c1d2562
Bug 1753731 - Mark ReadRequest::CloseSteps as MOZ_CAN_RUN_SCRIPT r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D137886
2022-02-04 20:35:14 +00:00
Kagami Sascha Rosylight
a8cd0edb38
Bug 1753207 - Use dom.streams.byte_streams.enabled to cover byte stream interfaces r=evilpie,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D137653
2022-02-02 18:56:49 +00:00
Kagami Sascha Rosylight
edd26e9b38
Bug 1752610 - Part 2: Cover members in ReadableStreamBYOB* cycle collection r=evilpie
...
Depends on D137330
Differential Revision: https://phabricator.services.mozilla.com/D137366
2022-01-29 13:21:58 +00:00
Kagami Sascha Rosylight
dfa71ba080
Bug 1752610 - Part 1: Cover more members in ReadableaByteStreamController cycle collection r=evilpie
...
Differential Revision: https://phabricator.services.mozilla.com/D137330
2022-01-29 13:21:57 +00:00
Tom Schuster
14199729ac
Bug 1752322 - Sprinkle around MightThrowJSException in ReadableByteStreamController. r=saschanaz
...
I still had this patch so I thought I might as well upload it.
My process for adding the calls was roughly:
- Cover everything that uses TransferArrayBuffer
- Look for uses of JS_ and JS::
- If there a multiple uses in a function put MightThrowJSException at the top
Overall I kind of doubt the usefulness of this assertion for our uses.
Differential Revision: https://phabricator.services.mozilla.com/D137186
2022-01-28 23:07:06 +00:00
Matthew Gaudet
50ff6071f3
Bug 1752328 - Clear pending assertion before running ReadIntoRequest error steps r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D137177
2022-01-27 20:37:28 +00:00
Kagami Sascha Rosylight
1409984fb7
Bug 1752075 - Use _INHERITED helpers for queuing strategy classes r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D137063
2022-01-26 22:03:19 +00:00
Jan Varga
e0b6f02ea4
Bug 1750730 - Add WebIDL bindings for OPFS; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D136226
2022-01-24 12:11:29 +00:00
Matthew Gaudet
b4a177c066
Bug 1750805 - Add missing error handling in WritableStreamDefaultControllerProcessClose r=evilpie
...
Depends on D136253
Differential Revision: https://phabricator.services.mozilla.com/D136254
2022-01-20 21:45:54 +00:00
Matthew Gaudet
a511e964a6
Bug 1750805 - Add missing error handling in ReadableStreamDefaultController::CancelSteps r=saschanaz
...
Depends on D136252
Differential Revision: https://phabricator.services.mozilla.com/D136253
2022-01-20 21:45:53 +00:00
Matthew Gaudet
8f3f7b281b
Bug 1750805 - Add missing error handling in ReadableByteStreamControllerCallPullIfNeeded r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D136252
2022-01-20 21:45:53 +00:00
Matthew Gaudet
bc10b96605
Bug 1748888
- Add ErrorResult parameter to PromiseNativeHandler callbacks r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D136423
2022-01-20 19:11:39 +00:00
Matthew Gaudet
903a3749e2
Bug 1748902 - Add test for Uncatchable Size Callback Exceptions, and Handle Size Callback Uncatchable Exceptions. r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D135269
2022-01-19 20:45:13 +00:00
Jan Varga
c7d00f4557
Bug 1750931 - Fix non-unified-build bustage in dom/events, dom/fetch and dom/streams; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D136315
2022-01-19 11:09:55 +00:00
Tom Schuster
a143ca3c1e
Bug 1750564
- Implement user-facing readable byte streams. r=mgaudet,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D136148
2022-01-19 09:56:49 +00:00
Matthew Gaudet
5b85a75046
Bug 1748916 - Defend against potential concurrent modification. r=smaug
...
This change is inspired by a Chrome security bug [1].
Since the Chrome bug was opened it appears that the bug was actually fixed at
the specification level, but it seems prudent to at least consider the
possibility of getting it wrong and being defensive here.
[1]: https://bugs.chromium.org/p/chromium/issues/detail?id=1045874
Differential Revision: https://phabricator.services.mozilla.com/D135293
2022-01-18 20:40:14 +00:00
Matthew Gaudet
929e884a05
Bug 1746650 - Finish porting suitable JS tests r=smaug
...
Remaining tests rely on shell only features like the promise rejection tracker,
or rely on CCWs getting created where the new implementation will not create
them (as the compartment ends up being determined by the parent object).
Differential Revision: https://phabricator.services.mozilla.com/D135292
2022-01-18 20:40:14 +00:00
Matthew Gaudet
53d6ff5635
Bug 1746650 - Port cross-compartment wrapping test, and fix bug with cross compartment sources. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D135291
2022-01-18 20:40:13 +00:00
Matthew Gaudet
9fbc171c0c
Bug 1750606 - Correct MOZ_CAN_RUN_SCRIPT annotation in dom/streams r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D136177
2022-01-18 14:39:44 +00:00
Tom Schuster
f19a7962a0
Bug 1750353 - Remove unused NativeUnderlyingSource. r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D136057
2022-01-18 10:08:17 +00:00
Matthew Gaudet
bd3f69d8aa
Bug 1750640 - Correct tracing for ReadableByteStreamController r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D136187
2022-01-17 22:26:49 +00:00
Matthew Gaudet
6f5b914a90
Bug 1746650 - Port test bug-1387503-1.js to DOM streams r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D135287
2022-01-14 21:09:22 +00:00
Matthew Gaudet
9b213c503e
Bug 1746648 - Cleanup PromiseHandler error handling r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D135286
2022-01-14 21:09:21 +00:00
Matthew Gaudet
0cfc097177
Bug 1746647 - Remove un-necessary callback error wrapping (redux) r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D135285
2022-01-14 21:09:21 +00:00
Matthew Gaudet
e6f0e756a1
Bug 1734873 - Fetch/Response/Blob ReadableStream integration r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D131550
2022-01-14 21:09:20 +00:00
Matthew Gaudet
468748a0bd
Bug 1743207 - Implement ByteLengthQueuingStrategy interface r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D134084
2022-01-13 19:01:20 +00:00
Matthew Gaudet
746da2c95e
Bug 1743207 - Extract BaseQueuingStrategy r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D134082
2022-01-13 19:01:20 +00:00
Tom Schuster
29c6c53e31
Bug 1735663 - Improve error messages for ReadableStream reader. r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D135740
2022-01-13 10:38:26 +00:00
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