Bug 1839316: part 5) Guard the "fetchpriority" attribute behind a pref. r=kershaw...
[gecko.git] / docshell / test / navigation / test_sessionhistory.html
blob2254ec876bca79ca82c29eb2bedc7510c0b4d226
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=
5 -->
6 <head>
7 <title>Test for Bug 462076</title>
8 <script src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body onload="nextTest()">
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=462076">Mozilla Bug 462076</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
16 </div>
17 <pre id="test">
18 <script type="application/javascript">
19 var testFiles =
20 [ "file_bug462076_1.html", // Dynamic frames before onload
21 "file_bug462076_2.html", // Dynamic frames when handling onload
22 "file_bug462076_3.html", // Dynamic frames after onload
24 var testCount = 0; // Used by the test files.
26 SimpleTest.waitForExplicitFinish();
28 var testWindow;
29 function nextTest_() {
30 if (testFiles.length) {
31 testCount = 0;
32 let nextFile = testFiles.shift();
33 info("Running " + nextFile);
34 testWindow = window.open(nextFile, "", "width=360,height=480");
35 testWindow.onunload = function() { }; // to prevent bfcache
36 } else {
37 SimpleTest.finish();
41 function nextTest() {
42 setTimeout(nextTest_, 0);
45 </script>
46 </pre>
47 </body>
48 </html>