ladybird/Libraries/LibWeb/Fetch/Infrastructure/HTTP
Timothy Flynn 0cd5e99066 LibWeb: Use the correct target realm to tee a stream
We currently store Web::Fetch::Infrastructure::Response objects in the
HTTP cache. They are associated with their original realm, but when we
use a cached response, we clone it into the target realm. For example,
two <iframe> objects loading the same HTML will be in different realms.

When we clone the response, we must use the target realm throughout the
entire cloning process. We neglected to do this for the cloned response
body stream, which is cloned via teeing. The result was the the stream
for the "cloned" response was created in the original realm, causing
issues down the line when reading from that stream tried to handle read
promises on behalf of the original realm. There are protections in place
to prevent this from happening, and the cached response read would never
complete.
2025-04-30 09:30:15 -04:00
..
Bodies.cpp LibWeb: Use the correct target realm to tee a stream 2025-04-30 09:30:15 -04:00
Bodies.h LibWeb: Remove exception handling from safely extracting response bodies 2024-12-09 20:02:51 -07:00
Headers.cpp LibWeb: Avoid re-encoding response headers 2024-12-17 13:44:10 +01:00
Headers.h LibWeb: Avoid re-encoding response headers 2024-12-17 13:44:10 +01:00
Methods.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Methods.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Requests.cpp LibWeb: Enforce Content Security Policy on Fetch requests 2025-03-19 00:55:14 +01:00
Requests.h LibWeb: Implement Resource Timing 2025-03-06 09:00:53 -07:00
Responses.cpp LibWeb: Do not store network errors as a StringView 2025-04-02 11:43:53 +02:00
Responses.h LibWeb: Do not store network errors as a StringView 2025-04-02 11:43:53 +02:00
Statuses.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Statuses.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00