Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								7067c5c972 
								
							 
						 
						
							
							
								
								LibWeb: Port TypeError in UnderlyingSource from ByteString  
							
							
							
						 
						
							2024-01-02 10:01:26 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								6b88fc2e05 
								
							 
						 
						
							
							
								
								LibWeb: Properly convert UnderlyingSource's autoAllocateChunkSize to u64  
							
							... 
							
							
							
							The JS::Value being passed through is not a bigint, and needs to be
converted using ConvertToInt, as per:
https://webidl.spec.whatwg.org/#es-unsigned-long-long 
Furthermore, the IDL definition also specifies that this is associated
with the [EnforceRange] extended attribute.
This makes it actually possible to pass through an autoAllocateChunkSize
to the ReadableStream constructor without it throwing a TypeError. 
							
						 
						
							2024-01-02 10:01:26 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								99bf986889 
								
							 
						 
						
							
							
								
								LibWeb: Use unsigned long long for ReadableStreamBYOBRequest.respond  
							
							... 
							
							
							
							Now that the IDL generator supports this :^) 
							
						 
						
							2024-01-02 10:01:26 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								9258d7b98a 
								
							 
						 
						
							
							
								
								LibJS+LibWeb: Implement resizable ArrayBuffer support for TypedArray  
							
							... 
							
							
							
							This is (part of) a normative change in the ECMA-262 spec. See:
a9ae96e 
							
						 
						
							2023-12-26 11:16:10 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andrew Kaster 
								
							 
						 
						
							
							
							
							
								
							
							
								d361221657 
								
							 
						 
						
							
							
								
								LibJS+LibWeb: Add JS::Value constructor for `JS::Handle<T>`  
							
							... 
							
							
							
							Similar to the constructors for ``JS::{Nonnull}GCPtr<T>``, this helper
avoids unnecessary .ptr() clutter when we want to construct Values. 
							
						 
						
							2023-12-19 09:21:55 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Ali Mohammad Pur 
								
							 
						 
						
							
							
							
							
								
							
							
								5e1499d104 
								
							 
						 
						
							
							
								
								Everywhere: Rename {Deprecated => Byte}String  
							
							... 
							
							
							
							This commit un-deprecates DeprecatedString, and repurposes it as a byte
string.
As the null state has already been removed, there are no other
particularly hairy blockers in repurposing this type as a byte string
(what it _really_ is).
This commit is auto-generated:
  $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \
    Meta Ports Ladybird Tests Kernel)
  $ perl -pie 's/\bDeprecatedString\b/ByteString/g;
    s/deprecated_string/byte_string/g' $xs
  $ clang-format --style=file -i \
    $(git diff --name-only | grep \.cpp\|\.h)
  $ gn format $(git ls-files '*.gn' '*.gni') 
							
						 
						
							2023-12-17 18:25:10 +03:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Aliaksandr Kalenik 
								
							 
						 
						
							
							
							
							
								
							
							
								6ac43274b2 
								
							 
						 
						
							
							
								
								LibWeb+LibJS: Use JS::GCPtr for pointers to GC-allocated objects  
							
							... 
							
							
							
							Fixes warnings found by LibJSGCVerifier 
							
						 
						
							2023-12-11 16:55:25 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								48aa9fbe07 
								
							 
						 
						
							
							
								
								LibWeb: Implement ReadableByteStreamController.enqueue  
							
							
							
						 
						
							2023-12-03 20:26:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								feb7fbb95d 
								
							 
						 
						
							
							
								
								LibWeb: Implement ReadableStreamBYOBRequest.respond  
							
							... 
							
							
							
							The parameter in IDL is left as an unsigned long instead of an unsigned
long long as the IDL generator does not currently support that. 
							
						 
						
							2023-12-03 20:26:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								08be5deb3f 
								
							 
						 
						
							
							
								
								LibWeb: Implement AO ReadableByteStreamControllerRespond  
							
							
							
						 
						
							2023-12-03 20:26:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								2ab933e534 
								
							 
						 
						
							
							
								
								LibWeb: Implement AO ReadableByteStreamControllerRespondInternal  
							
							
							
						 
						
							2023-12-03 20:26:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								426cbd8ed3 
								
							 
						 
						
							
							
								
								LibWeb: Implement AO ReadableByteStreamControllerRespondInClosedState  
							
							
							
						 
						
							2023-12-03 20:26:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								be2195cb8c 
								
							 
						 
						
							
							
								
								LibWeb: Implement AO ReadableByteStreamControllerRespondInReadableState  
							
							
							
						 
						
							2023-12-03 20:26:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								0245be70d8 
								
							 
						 
						
							
							
								
								LibWeb: Implement Streams AO CanTransferArrayBuffer  
							
							
							
						 
						
							2023-12-03 20:26:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								9d0700e770 
								
							 
						 
						
							
							
								
								LibWeb: Fix IDL getter for ReadableByteStreamController byobRequest  
							
							... 
							
							
							
							We were previously only returning the controllers current
[[byobRequest]] instead of taking into account pending pull intos.
Rename the getter function which would return the controllers
[[byobRequest]] slot to `raw_byob_request` to differentiate it from
the IDL getter.
This also leaves a FIXME for a spec step which we are also not currently
implementing correctly. 
							
						 
						
							2023-12-03 20:26:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								1e607f5775 
								
							 
						 
						
							
							
								
								LibWeb: Fix some missing initialize overrides for some Streams classes  
							
							... 
							
							
							
							This is some more motivation for me to get around to automatically
generate these initialize calls at some point. 
							
						 
						
							2023-12-03 20:26:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								b2a0a41503 
								
							 
						 
						
							
							
								
								LibWeb: Use TypedArrayBase::kind for pull into constructor lookup  
							
							
							
						 
						
							2023-12-03 20:26:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								a9a3dcd952 
								
							 
						 
						
							
							
								
								LibWeb: Use ArrayBufferView in ReadableStreamBYOBRequest  
							
							
							
						 
						
							2023-12-03 20:26:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								96af80acd1 
								
							 
						 
						
							
							
								
								LibWeb: Port Intrinsics from DeprecatedString  
							
							
							
						 
						
							2023-11-28 17:15:27 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								673329e1bd 
								
							 
						 
						
							
							
								
								LibWeb: Use ArrayBufferView for ReadableStreamBYOBReader  
							
							... 
							
							
							
							Which means that we now have support for DataViews.
Using the ArrayBufferView class also seems to make this read a whole
bunch nicer as well. 
							
						 
						
							2023-11-24 08:43:35 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								bfd354492e 
								
							 
						 
						
							
							
								
								LibWeb: Put most LibWeb GC objects in type-specific heap blocks  
							
							... 
							
							
							
							With this change, we now have ~1200 CellAllocators across both LibJS and
LibWeb in a normal WebContent instance.
This gives us a minimum heap size of 4.7 MiB in the scenario where we
only have one cell allocated per type. Of course, in practice there will
be many more of each type, so the effective overhead is quite a bit
smaller than that in practice.
I left a few types unconverted to this mechanism because I got tired of
doing this. :^) 
							
						 
						
							2023-11-19 22:00:48 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								1daded768d 
								
							 
						 
						
							
							
								
								LibWeb: Implement ReadableStreamBYOBReader::read  
							
							... 
							
							
							
							Similiarly to the underlying AO's, currently only TypedArrays are
supported. 
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								dcb7bb4a92 
								
							 
						 
						
							
							
								
								LibWeb: Support BYOB readers in ReadableByteStreamControllerEnqueue  
							
							
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								9662872b20 
								
							 
						 
						
							
							
								
								LibWeb: Implement AO ReadableStreamByobReaderRead  
							
							... 
							
							
							
							We've finally implemented enough of the Streams AOs so that we are close
to actually performing read operations with BYOB readers. 
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								3d37cb0753 
								
							 
						 
						
							
							
								
								LibWeb: Partially implement ReadableByteStreamControllerPullInto  
							
							... 
							
							
							
							This implementation does not handle DataViews at the moment, but should
handle all of the typed arrays. 
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								1443715775 
								
							 
						 
						
							
							
								
								LibWeb: Add ReadableBSControllerProcessPullIntoDescriptorsUsingQueue  
							
							
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								737dc6ce4e 
								
							 
						 
						
							
							
								
								LibWeb: Add ReadableByteStreamControllerFillPullIntoDescriptorFromQueue  
							
							
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								aca63fd947 
								
							 
						 
						
							
							
								
								LibWeb: Implement ReadableByteStreamControllerCommitPullIntoDescriptor  
							
							
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								cdcc1ebbba 
								
							 
						 
						
							
							
								
								LibWeb: Implement ReadableByteStreamControllerFillHeadPullIntoDescriptor  
							
							
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								8d4095d00e 
								
							 
						 
						
							
							
								
								LibWeb: Add some const overloads in ReadableByteStreamController  
							
							
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								26e393fbbc 
								
							 
						 
						
							
							
								
								LibWeb: Implement ReadableByteStreamControllerConvertPullIntoDescriptor  
							
							
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								25f8b80eab 
								
							 
						 
						
							
							
								
								LibWeb: Use move on ByteBuffer in TransferArrayBuffer  
							
							
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								446a78f30e 
								
							 
						 
						
							
							
								
								LibWeb: Implement Streams AO ReadableStreamAddReadIntoRequest  
							
							... 
							
							
							
							This is effectively identical to ReadableStreamAddReadRequest besides
from the fact that it takes a ReadIntoRequest instead of a ReadRequest,
and is instead intended to be used for BYOB readers. 
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								f27e76b0b7 
								
							 
						 
						
							
							
								
								LibWeb: Make ReadableStreamAddReadRequest take a NonnullGCPtr  
							
							... 
							
							
							
							Make it more obvious in the function signature that this function will
be taking a GC ref to a ReadRequest by appending it to the
ReadableStreams pending read requests. 
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								5ef41dca53 
								
							 
						 
						
							
							
								
								LibWeb: Implement Streams AO ReadableStreamFulfillReadIntoRequest  
							
							
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								0880ea3e1c 
								
							 
						 
						
							
							
								
								LibWeb: Add missing initialize override for ReadableStreamBYOBReader  
							
							... 
							
							
							
							This hasn't really come up as of yet because not enough of this class
has been implemented yet to actually do anything with it. 
							
						 
						
							2023-11-19 18:53:17 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Matthew Olsson 
								
							 
						 
						
							
							
							
							
								
							
							
								3ff481938e 
								
							 
						 
						
							
							
								
								IDL: Fix syntax errors  
							
							... 
							
							
							
							All attributes must have an "attribute" keyword, and "any?" is invalid
(as "any" includes "null" as well). 
							
						 
						
							2023-11-11 08:51:51 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Bastiaan van der Plaat 
								
							 
						 
						
							
							
							
							
								
							
							
								169d24ae2e 
								
							 
						 
						
							
							
								
								LibWeb: Add comments and missing items of various IDL files  
							
							
							
						 
						
							2023-10-25 19:45:41 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								d81b0e3c86 
								
							 
						 
						
							
							
								
								LibWeb/Streams: Make ReadIntoRequest GC-allocated  
							
							... 
							
							
							
							This ports the same change which was made in 9c3e9e8981 
							
						 
						
							2023-09-24 20:10:50 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								acda17ccc4 
								
							 
						 
						
							
							
								
								LibWeb/Streams: Handle BYOB reader in ReadableStreamError  
							
							
							
						 
						
							2023-09-24 20:10:50 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								54d1f4e234 
								
							 
						 
						
							
							
								
								LibJS: Stop propagating small OOM errors from the Error object  
							
							
							
						 
						
							2023-09-09 13:03:25 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								df915f8a98 
								
							 
						 
						
							
							
								
								LibWeb: Add missing return statement to bail from a stream read request  
							
							... 
							
							
							
							As the spec states, we should invoke the failureSteps and abort. 
							
						 
						
							2023-09-09 13:03:25 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								6e9aeccf90 
								
							 
						 
						
							
							
								
								LibWeb: Implement releaseLock interface for ReadableStreamBYOBReader  
							
							
							
						 
						
							2023-08-31 19:28:56 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								b06d80e6fd 
								
							 
						 
						
							
							
								
								LibWeb: Implement ReadableStreamBYOBReaderRelease Streams AO  
							
							
							
						 
						
							2023-08-31 19:28:56 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								8ce4f5597c 
								
							 
						 
						
							
							
								
								LibWeb: Implement ReadableStreamBYOBReaderErrorReadIntoRequests AO  
							
							
							
						 
						
							2023-08-31 19:28:56 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								e08072ac2b 
								
							 
						 
						
							
							
								
								LibWeb: Explicitly clear read requests for default stream reader  
							
							... 
							
							
							
							Expecting the list to be cleared from the move() is quite strange and
not particularly clear. Explicitly clear the requests instead. 
							
						 
						
							2023-08-31 19:28:56 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shannon Booth 
								
							 
						 
						
							
							
							
							
								
							
							
								c279d514e9 
								
							 
						 
						
							
							
								
								LibWeb: Implement ReadableStreamBYOBReader constructor  
							
							
							
						 
						
							2023-08-31 19:28:56 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								72c9f56c66 
								
							 
						 
						
							
							
								
								LibJS: Make Heap::allocate<T>() infallible  
							
							... 
							
							
							
							Stop worrying about tiny OOMs. Work towards #20449 .
While going through these, I also changed the function signature in many
places where returning ThrowCompletionOr<T> is no longer necessary. 
							
						 
						
							2023-08-13 15:38:42 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								9c3e9e8981 
								
							 
						 
						
							
							
								
								LibWeb/Streams: Make ReadRequest GC-allocated  
							
							... 
							
							
							
							This allows it to keep its edges alive. Fixes an intermittent crash seen
by UBSAN on CI. :^) 
							
						 
						
							2023-08-09 19:16:07 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andreas Kling 
								
							 
						 
						
							
							
							
							
								
							
							
								40bdcdf966 
								
							 
						 
						
							
							
								
								LibWeb/Streams: Add WritableStreamDefaultController::visit_edges()  
							
							
							
						 
						
							2023-08-09 19:16:07 +02:00