ladybird/Userland/Libraries/LibWeb
Timothy Flynn 1ffda6a805 LibWeb: Propagate OOM in Body::fully_read() through its error callback
Fetched bodies can be on the order of gigabytes, so rather than crashing
when we hit OOM here, we can simply invoke the error callback with a DOM
exception. We use "UnknownError" here as the spec directly supports this
for OOM errors:

    UnknownError: The operation failed for an unknown transient reason
                  (e.g. out of memory).

This is still an ad-hoc implementation. We should be using streams, and
we do have the AOs available to do so. But they need to be massaged to
be compatible with callers of Body::fully_read. And once we do use
streams, this function will become infallible - so making it infallible
here is at least a step in the right direction.
2024-04-27 07:08:14 +02:00
..
Animations LibWeb: Let queue_global_task() take a JS::HeapFunction 2024-04-20 18:11:01 +02:00
ARIA LibWeb: Return correct RoleType for composite ARIA role 2024-01-27 14:52:41 -05:00
Bindings LibWeb: Exclude [Global] interfaces from legacy platform object method 2024-04-26 20:02:21 +02:00
Clipboard LibWeb: Let queue_global_task() take a JS::HeapFunction 2024-04-20 18:11:01 +02:00
Cookie Everywhere: Use east const in more places 2024-04-19 06:31:19 -04:00
Crypto LibWeb: Fix a few "missing visit_edges" warnings from the GC verifier 2024-04-07 07:03:13 +02:00
CSS LibWeb: Parse dimension values using TokenStream 2024-04-22 06:47:05 +02:00
DOM LibWeb: Propagate OOM in Body::fully_read() through its error callback 2024-04-27 07:08:14 +02:00
DOMParsing LibWeb: Only invalidate style/layout on mutation for connected DOM nodes 2024-04-15 12:58:27 +02:00
DOMURL AK+LibURL: Move AK::URL into a new URL library 2024-03-18 14:06:28 -04:00
Encoding LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
Fetch LibWeb: Propagate OOM in Body::fully_read() through its error callback 2024-04-27 07:08:14 +02:00
FileAPI LibWeb: Let queue_global_task() take a JS::HeapFunction 2024-04-20 18:11:01 +02:00
Geometry Everywhere: Remove 'clang-format off' comments that are no longer needed 2024-04-24 16:50:01 -04:00
HighResolutionTime LibWeb: Implement "current high resolution time" AO 2024-04-12 09:08:46 +02:00
HTML LibWeb: Propagate OOM in Body::fully_read() through its error callback 2024-04-27 07:08:14 +02:00
Infra LibWeb: Implement an AO to normalize newlines in a string 2024-03-16 13:11:57 +01:00
Internals LibWeb: Associate InternalAnimationTimeline with a DOM::Document 2024-03-29 06:59:37 +01:00
IntersectionObserver LibJS+LibWeb: Use new Cell::Visitor helpers to avoid manual iteration 2024-04-16 07:40:01 +02:00
Layout LibWeb: Resolve vertical padding of inline elements 2024-04-25 12:45:39 +02:00
Loader LibWeb: Use JS::SafeFunction for ResourceLoader callbacks 2024-04-03 18:14:33 +02:00
MathML LibWeb: Allocate dataset lazily for HTML/SVG/MathML elements 2024-04-25 09:30:30 +02:00
MimeSniff LibWeb/MimeSniff: Add non-standard text or binary context sniffing 2024-02-02 14:34:17 -05:00
NavigationTiming LibWeb: Don't store WindowOrWorkerGlobalScopeMixin in Performance 2024-04-07 07:03:13 +02:00
Page LibWeb: Move event handling & cursor from BrowsingContext to Navigable 2024-04-26 20:01:58 +02:00
Painting LibWeb: Move event handling & cursor from BrowsingContext to Navigable 2024-04-26 20:01:58 +02:00
PerformanceTimeline LibJS+LibWeb: Use new Cell::Visitor helpers to avoid manual iteration 2024-04-16 07:40:01 +02:00
PermissionsPolicy AK+LibURL: Move AK::URL into a new URL library 2024-03-18 14:06:28 -04:00
Platform LibWeb: Set decoder error when decoding fails 2024-04-26 11:48:48 -04:00
ReferrerPolicy AK+LibURL: Move AK::URL into a new URL library 2024-03-18 14:06:28 -04:00
RequestIdleCallback LibWeb: Use "current high resolution time" AO where relevant 2024-04-12 09:08:46 +02:00
ResizeObserver LibJS+LibWeb: Use new Cell::Visitor helpers to avoid manual iteration 2024-04-16 07:40:01 +02:00
SecureContexts AK+LibURL: Move AK::URL into a new URL library 2024-03-18 14:06:28 -04:00
Selection LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SRI LibWeb: Implement integrity-metadata part of fetch algorithm 2023-04-21 20:44:47 +01:00
Streams LibJS+LibWeb: Use new Cell::Visitor helpers to avoid manual iteration 2024-04-16 07:40:01 +02:00
SVG LibWeb: Allocate dataset lazily for HTML/SVG/MathML elements 2024-04-25 09:30:30 +02:00
UIEvents LibWeb: Implement the PointerEvent interface 2024-04-08 14:25:08 +02:00
UserTiming LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
WebAssembly LibWeb: Remove data from WebAssembly cache when namespace is finalized 2024-04-26 13:56:39 +02:00
WebAudio LibWeb: Begin implementing the interface for AudioBuffer 2024-04-25 19:26:19 -04:00
WebDriver LibWeb: Ignore window-forwarded document.body.onfoo in detached DOM 2024-03-11 18:29:10 +01:00
WebGL LibWeb: Remove a bunch of calls to to_byte_string 2024-04-05 20:01:37 -04:00
WebIDL LibWeb: Add missing CellAllocator.h include for Buffers.h 2024-04-25 19:26:19 -04:00
WebSockets AK+LibURL: Move AK::URL into a new URL library 2024-03-18 14:06:28 -04:00
Worker Ladybird+Userland: Remove use of unnecessary fd passing socket concept 2024-04-19 16:38:55 -04:00
XHR LibWeb: Remove OOM propagation from Fetch::Infrastructure::Methods 2024-04-27 07:08:14 +02:00
XLink LibWeb: Add Web::XLink::AttributeNames 2023-11-05 11:16:16 +00:00
XML LibWeb: Let queue_global_task() take a JS::HeapFunction 2024-04-20 18:11:01 +02:00
CMakeLists.txt LibWeb: Begin implementing the interface for AudioBuffer 2024-04-25 19:26:19 -04:00
Dump.cpp LibWeb: Add SessionHistoryEntry::document() 2024-03-27 18:07:07 +01:00
Dump.h LibWeb+WebContent: Add option to dump session history of a traversable 2023-09-16 16:53:32 +02:00
Forward.h LibWeb: Implement <desc> SVG element 2024-04-17 07:17:27 +02:00
idl_files.cmake LibWeb: Begin implementing the interface for AudioBuffer 2024-04-25 19:26:19 -04:00
Namespace.cpp LibWeb: Make Web::Namespace::Foo strings be FlyString 2023-11-04 21:28:30 +01:00
Namespace.h LibWeb: Make Web::Namespace::Foo strings be FlyString 2023-11-04 21:28:30 +01:00
PixelUnits.cpp LibWeb: Refactor int types in WebContentServer to DevicePixels 2023-12-15 17:01:16 +01:00
PixelUnits.h LibWeb: Properly round CSSPixels values in device_to_css_rect 2024-02-21 20:08:25 +01:00
TreeNode.h LibWeb: Remove all the unused functions from TreeNode 2023-08-20 05:02:59 +02:00