mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
If the request has a body, the abort will interact with promises, which requires callbacks to be enabled. Fixes crashing on Atlassian products.
13 lines
391 B
HTML
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>
|