1
0
Fork 0
firefox/toolkit/components/places/tests/browser/1601563-1.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
609 B
HTML

<!doctype html>
<title>First title</title>
<iframe srcdoc=""></iframe>
<script>
onload = function() {
// This iframe doc shouldn't override our title.
let doc = document.querySelector("iframe").contentDocument;
doc.open();
doc.write("<title>This is not your title</title>Hello");
doc.close();
if (doc.title == "This is not your title") {
// Now navigate away so that the test has something to wait for to ensure the
// relevant code has run.
let link = document.createElement("a");
link.href = window.location.href.replace("-1.html", "-2.html");
link.click();
}
}
</script>