1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 19:35:06 +00:00
serenity/Tests/LibWeb/Layout/input/misc/create-iframes-using-innerhtml.html
Aliaksandr Kalenik c1161111a7 LibWeb: Stop assuming navigable's existance in FrameBox
If the loading of iframe's navigable has not finished by the time
FrameBox layout occurs, we should not crash.

Fixes https://github.com/SerenityOS/serenity/issues/22874
2024-01-20 20:34:30 +00:00

15 lines
No EOL
532 B
HTML

<!DOCTYPE html><html><head><style>
iframe {
border: 5px solid black;
margin: 5px;
}
</style></head><body><div id="container"></div><script>
const container = document.getElementById("container");
const manyIframes = "<iframe height=10 width=10></iframe>".repeat(10);
const topDiv = document.createElement("div");
topDiv.style.position = "absolute";
topDiv.style.height = "1px";
topDiv.style.width = "1px";
topDiv.innerHTML = manyIframes;
container.appendChild(topDiv);
</script></body></html>