1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:37:45 +00:00

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
This commit is contained in:
Aliaksandr Kalenik 2024-01-20 19:41:57 +01:00 committed by Luke Wilde
parent b2bc57ff89
commit c1161111a7
3 changed files with 58 additions and 5 deletions

View file

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