Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit f89cf12

Browse files
committed
Bug 1675318 - Part 11: Split up test for bug 1379762 from test_sessionhistory.html, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D96874
1 parent 33ff5ea commit f89cf12

File tree

4 files changed

+40
-4
lines changed

4 files changed

+40
-4
lines changed

docshell/test/navigation/file_bug1379762-1.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
// Do this async so our load event gets a chance to fire if it plans to
2121
// do it.
2222
setTimeout(function() {
23-
opener.nextTest();
24-
window.close();
23+
opener.finishTest();
2524
});
2625
}
2726
};

docshell/test/navigation/mochitest.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ support-files =
6060
file_bug1375833-frame2.html
6161
test_bug145971.html
6262
file_bug1609475.html
63+
file_bug1379762-1.html
6364

6465
[test_aboutblank_change_process.html]
6566
[test_bug13871.html]
@@ -91,7 +92,6 @@ skip-if =
9192
skip-if = fission # bug 1666602
9293
[test_sessionhistory.html]
9394
skip-if = toolkit == 'android' || fission # RANDOM on android
94-
support-files = file_bug1379762-1.html
9595
[test_dynamic_frame_forward_back.html]
9696
[test_sessionhistory_document_write.html]
9797
[test_session_history_entry_cleanup.html]
@@ -105,6 +105,8 @@ skip-if = fission # It relies on the bfcache
105105
skip-if = fission
106106
[test_bug1326251.html]
107107
skip-if = toolkit == 'android' || fission # It relies on the bfcache
108+
[test_bug1379762.html]
109+
skip-if = fission # It relies on the bfcache
108110
[test_sibling-matching-parent.html]
109111
[test_sibling-off-domain.html]
110112
[test_triggeringprincipal_frame_nav.html]
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE HTML>
2+
<html>
3+
<!--
4+
https://bugzilla.mozilla.org/show_bug.cgi?id=
5+
-->
6+
<head>
7+
<title>Test for Bug 1379762</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="runTest()">
12+
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1379762">Mozilla Bug 1379762</a>
13+
<p id="display"></p>
14+
<div id="content" style="display: none">
15+
16+
</div>
17+
<pre id="test">
18+
<script type="application/javascript">
19+
var testCount = 0; // Used by the test files.
20+
21+
SimpleTest.waitForExplicitFinish();
22+
23+
var testWindow;
24+
function runTest() {
25+
testWindow = window.open("file_bug1379762-1.html", "", "width=360,height=480");
26+
testWindow.onunload = function() { }; // to prevent bfcache
27+
}
28+
29+
function finishTest() {
30+
SimpleTest.finish();
31+
}
32+
33+
</script>
34+
</pre>
35+
</body>
36+
</html>

docshell/test/navigation/test_sessionhistory.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"file_bug462076_2.html", // Dynamic frames when handling onload
2525
"file_bug462076_3.html", // Dynamic frames after onload
2626
// "file_static_and_dynamic_1.html",// Static and dynamic frames and forward-back
27-
"file_bug1379762-1.html",
2827
];
2928
var testCount = 0; // Used by the test files.
3029

0 commit comments

Comments
 (0)