Bug 1699941 - Ensure docshell/test/navigation/test_bug1379762.html works with SHIP-BFCache r=nika

Depends on D109216

Differential Revision: https://phabricator.services.mozilla.com/D109217
This commit is contained in:
Olli Pettay 2021-03-21 19:40:50 +00:00
Родитель 4dfc15fe87
Коммит 9ab5459e29
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -134,7 +134,6 @@ skip-if =
[test_bug1326251.html]
skip-if = toolkit == 'android' || sessionHistoryInParent # It relies on the bfcache
[test_bug1379762.html]
skip-if = sessionHistoryInParent # It relies on the bfcache
[test_static_and_dynamic.html]
skip-if = true # This was disabled for a few years now anyway, bug 1677544
[test_sibling-matching-parent.html]

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

@ -55,7 +55,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=
SimpleTest.waitForExplicitFinish();
function runTest() {
window.open("file_bug1379762-1.html", "", "width=360,height=480,noopener");
// If Fission is disabled, the pref is no-op.
SpecialPowers.pushPrefEnv({set: [["fission.bfcacheInParent", true]]}, () => {
window.open("file_bug1379762-1.html", "", "width=360,height=480,noopener");
});
}
</script>