ladybird/Tests/LibWeb/Text/input/navigation/make-sure-about-blank-navigation-is-done-before-further-navigation-of-iframe.html
Aliaksandr Kalenik 3f71907255 LibWeb: Process navigations after initial about:blank navigation is done
Otherwise finalization step of initial `about:blank` navigation might
cancel user-initiated navigations by changing ongoing navigation id.

This is implemented by marking navigable as ready to start processing
navigation in SHTQ task, because we know for sure this task cannot be
processed until finalization step of initial `about:blank` navigation
is done.
2025-02-27 23:33:05 +01:00

25 lines
No EOL
655 B
HTML

<!DOCTYPE html>
<html lang="en">
<script src="../include.js"></script>
<body>
<script>
asyncTest(done => {
window.addEventListener("message", (e) => {
println(e.data);
done();
});
const iframe = document.createElement("iframe");
document.body.appendChild(iframe);
const iframe2 = document.createElement("iframe");
iframe2.onload = () => {
iframe.contentWindow.location.href = "../../data/test-iframe-content.html";
};
document.body.appendChild(iframe2);
});
</script>
</body>
</html>