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.
This commit is contained in:
Jelle Raaijmakers 2025-07-08 11:56:23 +02:00
commit c99a467cdb
Notes: github-actions[bot] 2025-07-10 20:44:45 +00:00
3 changed files with 70 additions and 24 deletions

View file

@ -0,0 +1,14 @@
<!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>