mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
Thanks to Oscar Uribe for the report. Co-Authored-By: Jelle Raaijmakers <jelle@ladybird.org>
21 lines
465 B
HTML
21 lines
465 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
const xhr = new XMLHttpRequest();
|
|
xhr.open('GET', `file://${window.location.pathname}`);
|
|
|
|
xhr.onload = () => {
|
|
println('FAIL: no exception or error was raised');
|
|
done();
|
|
};
|
|
|
|
xhr.onerror = () => {
|
|
println("Unable to fetch file://");
|
|
done();
|
|
};
|
|
|
|
xhr.send();
|
|
});
|
|
</script>
|