Files
ladybird/Tests/LibWeb/Text/input/Fetch/fetch-controller-abort-with-body-does-not-crash-with-timeout.html
Luke Wilde e2c935475f LibWeb/Fetch: Enable callbacks in the abort signal algorithm callback
If the request has a body, the abort will interact with promises, which
requires callbacks to be enabled.

Fixes crashing on Atlassian products.
2025-08-26 16:29:35 +02:00

13 lines
391 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
asyncTest((done) => {
const timeoutSignal = AbortSignal.timeout(0);
fetch('data:text/plain,fetched from far', { signal: timeoutSignal, body: "message in a bottle", method: "POST" });
setTimeout(() => {
println("PASS! (Didn't crash)");
done();
}, 1);
});
</script>