Files
ladybird/Tests/LibWeb/Text/data/iframe-nav-before-load-page-b.html
Aliaksandr Kalenik 54757e3586 LibWeb: Don't force replace history handling for iframe src changes
The spec's "not completely loaded" check in navigate_an_iframe_or_frame
was applied to all navigations, including attribute-driven src changes.
This caused navigations triggered before the previous page's load event
(e.g. via postMessage during parsing) to replace the history entry
instead of pushing a new one.

Restrict the check to initial insertion only. For subsequent src
attribute changes, always use "auto" so the navigate algorithm's own
logic (navigation_must_be_a_replace) decides the history handling.
2026-04-04 11:30:55 +02:00

6 lines
248 B
HTML

<!DOCTYPE html>
<script>
var sessionHistory = (typeof internals !== "undefined" && internals.dumpSessionHistory) ? internals.dumpSessionHistory() : "n/a";
parent.postMessage({ type: "page-b-ready", sessionHistory: sessionHistory }, "*");
</script>