Files
ladybird/Tests/LibWeb/Text/input/Fetch/prevent-file-from-fetching-file.html
Shannon Booth 3a9a8e38f8 LibWeb/Fetch: Prevent file:// URLs from calling fetch() API
Thanks to Oscar Uribe for the report.

Co-Authored-By: Jelle Raaijmakers <jelle@ladybird.org>
2026-02-21 23:00:57 +01:00

14 lines
314 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
asyncTest(async done => {
try {
await fetch(`file://${window.location.pathname}`);
println('FAIL: no exception was thrown');
} catch (e) {
println(e);
}
done();
});
</script>