Bug 1678089 - Trigger the test function after the child document received the load event. r=dholbert

Though the test funtion is called twice since the parent document reloads the
iframe document, but the test will not run for the second call since it's
prevented by `testRunning` flag in test_bug851485.html.

Differential Revision: https://phabricator.services.mozilla.com/D122662
This commit is contained in:
Hiroyuki Ikezoe 2021-08-14 22:55:17 +00:00
Родитель c630e9c4dc
Коммит 12bf7decdb
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -7,7 +7,11 @@
<body>
<a href="#anchor">Click to scroll to anchor</a><div style="height:5000px"></div><a name="anchor">FAIL</a>
<script>window.parent.runTest()</script>
<script>
window.addEventListener("load", () => {
window.parent.runTest();
});
</script>
</body>
</html>

Просмотреть файл

@ -88,7 +88,7 @@ support-files =
file_bug842853-frame.html
skip-if = toolkit == 'android' # Bug 1355821
[test_bug842853-2.html]
skip-if = xorigin || toolkit == 'android' # Bug 1682493, 1355821
skip-if = toolkit == 'android' # Bug 1682493, 1355821
[test_bug849219.html]
[test_bug851445.html]
skip-if = toolkit == 'android' # Bug 1355821
@ -96,8 +96,6 @@ support-files = bug851445_helper.html
[test_bug851485.html]
skip-if =
toolkit == 'android' # Bug 1355821
fission && (os == 'win' || os == 'mac') # Bug 1694833 - initial triage
fission && os == 'linux' #Bug 1678089
[test_bug858459.html]
skip-if = toolkit == 'android' # Bug 1355822
[test_bug968148.html]