From 0c43e7ec4155c068ee1b2d3b3f34f0e98ecc7cbb Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Tue, 30 Mar 2021 09:25:41 +0000 Subject: [PATCH] Bug 1689663 - Don't try to run docshell/test/navigation/test_bug1364364.html with SHIP-BFCache, r=peterv I think this particular test doesn't make much sense in the new implementation. Differential Revision: https://phabricator.services.mozilla.com/D109961 --- docshell/test/navigation/mochitest.ini | 2 +- docshell/test/navigation/test_bug1364364.html | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docshell/test/navigation/mochitest.ini b/docshell/test/navigation/mochitest.ini index 5cb9d9f8c144..0355ed864fdb 100644 --- a/docshell/test/navigation/mochitest.ini +++ b/docshell/test/navigation/mochitest.ini @@ -95,7 +95,7 @@ skip-if = toolkit == "android" || toolkit == "windows" # disabled on Windows bec [test_bug430723.html] skip-if = (!debug && (os == 'mac' || os == 'win')) # Bug 874423 [test_bug1364364.html] -skip-if = (os == "android") || fission # Bug 1560378, bug 1666449 +skip-if = (os == "android") # Bug 1560378 [test_bug1375833.html] [test_bug1536471.html] support-files = file_bug1536471.html diff --git a/docshell/test/navigation/test_bug1364364.html b/docshell/test/navigation/test_bug1364364.html index b237e5339f89..04decf681561 100644 --- a/docshell/test/navigation/test_bug1364364.html +++ b/docshell/test/navigation/test_bug1364364.html @@ -14,6 +14,15 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1364364 let testWin, testDoc; async function test() { SimpleTest.waitForExplicitFinish(); + if (SpecialPowers.Services.appinfo.fissionAutostart) { + // This test relies on the possibility to modify the bfcached document. + // The new implementation is more restricted and thus works only + // when the bfcached browsing context is the only top level one + // in the browsing context group. + ok(true, "This test is for the old bfcache implementation only."); + SimpleTest.finish(); + return; + } testWin = window.open("file_bug1364364-1.html"); await waitForLoad(testWin); testDoc = testWin.document;