ladybird/Tests/LibWeb/Text/input/navigation/navigate-mailto-crash.html
Jelle Raaijmakers c99a467cdb LibWeb: Do not crash when navigating to mailto: links
We forgot to implement a couple of "otherwise," statements from the
"populating a session history entry" spec. While we're here, let's
update the spec copy where relevant.
2025-07-10 22:43:30 +02:00

14 lines
398 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<a href="mailto:contact@ladybird.org">please don't crash</a>
<script>
asyncTest(done => {
document.querySelector('a').click();
// The crash happened asynchronously, so we wait for a small amount of time before passing the test.
setTimeout(() => {
println('PASS (did not crash)');
done();
}, 100);
});
</script>