Files
ladybird/Tests/LibWeb/Crash/DOM/document-open-navigation-api.html
Tim Ledbetter f601c0cd4b LibWeb: Disable Navigation API after document.open() on about:blank
This matches the behavior of other engines.
2026-03-29 16:39:03 +02:00

12 lines
304 B
HTML

<!DOCTYPE html>
<body>
<script>
const iframe = document.createElement("iframe");
document.body.appendChild(iframe);
iframe.contentDocument.open();
iframe.contentDocument.write("<!DOCTYPE html><p>hello</p>");
iframe.contentDocument.close();
iframe.contentWindow.navigation.currentEntry;
</script>
</body>