5 <title>Test srcdoc handling when reloading a page.
</title>
6 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
7 <link rel=
"stylesheet" href=
"/tests/SimpleTest/test.css"/>
9 // The old session history implementation asserts in
10 // https://searchfox.org/mozilla-central/rev/b822a27de3947d3f4898defac6164e52caf1451b/docshell/shistory/nsSHEntry.cpp#670-672
11 SimpleTest
.expectAssertions(0, 1);
12 SimpleTest
.waitForExplicitFinish();
16 window
.onmessage = function(event
) {
17 if (event
.data
== "pageload:") {
18 // Trigger a similar reload as what the reload button does.
19 SpecialPowers
.wrap(win
)
21 .QueryInterface(SpecialPowers
.Ci
.nsIWebNavigation
)
24 } else if (event
.data
== "pageload:second") {
25 ok(true, "srcdoc iframe was updated.");
30 win
= window
.open("file_reload_nonbfcached_srcdoc.sjs");
35 <body onload=
"test()">
37 <div id=
"content" style=
"display: none"></div>