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
..
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-04-20 18:11:01 +02:00
2024-03-26 11:42:40 +01:00
2024-03-12 09:31:41 +01:00
2024-03-16 16:35:54 +01:00
2024-01-04 10:10:44 +01:00
2023-11-11 08:51:51 +01:00
2024-04-16 07:40:01 +02:00
2023-11-19 22:00:48 +01:00
2024-03-09 16:13:32 +01:00
2024-03-09 16:13:32 +01:00
2024-03-16 16:35:54 +01:00
2024-03-16 14:27:59 +01:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2023-11-11 08:51:51 +01:00
2024-03-18 13:42:16 +01:00
2023-12-23 20:41:41 +01:00
2023-12-23 20:41:41 +01:00
2024-03-11 18:29:10 +01:00
2023-11-11 08:51:51 +01:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-04-27 07:08:14 +02:00
2024-04-26 20:01:58 +02:00
2024-04-19 10:58:45 +02:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-04-27 07:08:14 +02:00
2024-04-22 17:10:11 +02:00
2023-11-19 22:00:48 +01:00
2023-11-19 22:00:48 +01:00
2024-03-09 16:13:32 +01:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2023-11-19 22:00:48 +01:00
2023-11-19 22:00:48 +01:00
2024-03-16 16:35:54 +01:00
2024-01-13 08:33:10 +01:00
2024-01-13 08:33:10 +01:00
2024-03-16 16:35:54 +01:00
2024-01-12 09:11:18 +01:00
2024-04-24 18:04:28 +02:00
2024-04-21 19:51:24 +02:00
2024-04-14 22:08:22 +02:00
2024-04-17 07:17:27 +02:00
2024-04-16 07:40:01 +02:00
2024-04-08 14:25:08 +02:00
2023-12-02 22:54:53 +01:00
2024-02-25 10:17:25 +01:00
2024-04-16 07:40:01 +02:00
2024-04-09 09:13:06 +02:00
2024-04-26 07:44:01 -04:00
2024-04-26 07:44:01 -04:00
2024-03-16 16:35:54 +01:00
2023-12-23 20:53:11 +01:00
2024-01-18 14:00:06 +01:00
2024-04-09 09:13:06 +02:00
2024-04-09 09:13:06 +02:00
2023-12-23 20:53:11 +01:00
2023-12-23 20:53:11 +01:00
2024-04-16 07:40:01 +02:00
2024-04-09 09:13:06 +02:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-04-16 07:40:01 +02:00
2024-04-14 22:08:22 +02:00
2024-01-03 10:13:47 +01:00
2024-04-26 10:40:43 +02:00
2024-04-26 10:40:43 +02:00
2023-11-19 22:00:48 +01:00
2023-11-19 22:00:48 +01:00
2023-11-11 08:51:51 +01:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-03-16 16:35:54 +01:00
2024-01-12 09:11:18 +01:00
2023-12-17 18:25:10 +03:30
2024-04-09 09:13:06 +02:00
2024-04-09 09:13:06 +02:00
2023-12-12 01:08:07 +01:00
2024-02-24 08:09:01 +01:00
2024-03-16 16:35:54 +01:00
2023-12-24 13:26:50 +01:00
2023-11-06 11:37:08 +01:00
2023-11-06 11:37:08 +01:00
2024-03-16 16:35:54 +01:00
2023-12-23 20:53:11 +01:00
2024-04-20 18:11:01 +02:00
2024-03-12 16:30:39 +01:00
2024-01-20 08:56:52 +01:00
2024-03-16 16:35:54 +01:00
2024-03-09 16:13:32 +01:00
2024-03-09 16:13:32 +01:00
2023-11-11 08:51:51 +01:00
2024-04-16 07:40:01 +02:00
2023-11-19 22:00:48 +01:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-04-16 07:41:33 +02:00
2024-04-16 07:41:33 +02:00
2024-04-07 07:03:13 +02:00
2024-04-26 20:01:58 +02:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-03-18 14:06:28 -04:00
2024-03-18 14:06:28 -04:00