mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 15:41:57 +00:00
The spec says that "isTrusted is a convenience that indicates whether an event is dispatched by the user agent (as opposed to using dispatchEvent())" But when dispatching a pageshow event the flag was incorrectly set to false. This fixes https://wpt.fyi/results/html/syntax/parsing/the-end.html
14 lines
No EOL
326 B
HTML
14 lines
No EOL
326 B
HTML
<script src="../include.js"></script>
|
|
<iframe id="i"></iframe>
|
|
<script>
|
|
asyncTest((done) => {
|
|
window.addEventListener("pageshow", (e) => {
|
|
if (e.isTrusted) {
|
|
println("PASS");
|
|
} else {
|
|
println("FAIL");
|
|
}
|
|
done();
|
|
});
|
|
});
|
|
</script> |