mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-23 10:50:49 +00:00
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:
parent
d822b96786
commit
c99a467cdb
Notes:
github-actions[bot]
2025-07-10 20:44:45 +00:00
Author: https://github.com/gmta
Commit: c99a467cdb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5348
3 changed files with 70 additions and 24 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue