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

Commit bb8b763

Browse files
committed
Bug 1675318 - Part 12: Split up the remaining tests in test_sessionhistory.html, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D96875
1 parent f89cf12 commit bb8b763

File tree

4 files changed

+42
-10
lines changed

4 files changed

+42
-10
lines changed

docshell/test/navigation/file_static_and_dynamic_1.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
var staticFrame = document.getElementById("staticframe");
1818
opener.ok(String(staticFrame.contentWindow.location).includes(staticFrame.src),
1919
"Wrong document loaded!");
20-
opener.nextTest();
21-
window.close();
20+
opener.finishTest();
2221
}
2322
}
2423
</script>

docshell/test/navigation/mochitest.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ skip-if =
9191
[test_performance_navigation.html]
9292
skip-if = fission # bug 1666602
9393
[test_sessionhistory.html]
94-
skip-if = toolkit == 'android' || fission # RANDOM on android
94+
skip-if = verify && (os == 'mac') && debug && webrender # Hit MOZ_CRASH(Shutdown too long, probably frozen, causing a crash.) bug 1677545
9595
[test_dynamic_frame_forward_back.html]
9696
[test_sessionhistory_document_write.html]
9797
[test_session_history_entry_cleanup.html]
@@ -107,6 +107,8 @@ skip-if = fission
107107
skip-if = toolkit == 'android' || fission # It relies on the bfcache
108108
[test_bug1379762.html]
109109
skip-if = fission # It relies on the bfcache
110+
[test_static_and_dynamic.html]
111+
skip-if = true # This was disabled for a few years now anyway, bug 1677544
110112
[test_sibling-matching-parent.html]
111113
[test_sibling-off-domain.html]
112114
[test_triggeringprincipal_frame_nav.html]

docshell/test/navigation/test_sessionhistory.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,26 @@
44
https://bugzilla.mozilla.org/show_bug.cgi?id=
55
-->
66
<head>
7-
<title>Test for Bug </title>
7+
<title>Test for Bug 462076</title>
88
<script src="/tests/SimpleTest/SimpleTest.js"></script>
99
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
1010
</head>
1111
<body onload="nextTest()">
12-
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=">Mozilla Bug </a>
12+
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=462076">Mozilla Bug 462076</a>
1313
<p id="display"></p>
1414
<div id="content" style="display: none">
1515

1616
</div>
1717
<pre id="test">
1818
<script type="application/javascript">
19-
20-
/** Test for Bug **/
21-
2219
var testFiles =
2320
[ "file_bug462076_1.html", // Dynamic frames before onload
2421
"file_bug462076_2.html", // Dynamic frames when handling onload
2522
"file_bug462076_3.html", // Dynamic frames after onload
26-
// "file_static_and_dynamic_1.html",// Static and dynamic frames and forward-back
2723
];
2824
var testCount = 0; // Used by the test files.
2925

3026
SimpleTest.waitForExplicitFinish();
31-
SimpleTest.requestFlakyTimeout("untriaged");
3227

3328
var testWindow;
3429
function nextTest_() {
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 static and dynamic frames and forward-back </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=">Mozilla Bug </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_static_and_dynamic_1.html", "", "width=360,height=480");
26+
testWindow.onunload = function() { }; // to prevent bfcache
27+
}
28+
29+
function finishTest() {
30+
testWindow.close();
31+
SimpleTest.finish();
32+
}
33+
</script>
34+
</pre>
35+
</body>
36+
</html>

0 commit comments

Comments
 (0)