Bug 1689664 - Ensure docshell/test/navigation/test_performance_navigation.html works with SHIP-BFCache, r=peterv
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Fri, 26 Mar 2021 19:15:01 +0000
changeset 640898 803f8bc9241ef13ffbc582a3f7f4c4089bef0fbe
parent 640897 e45320a68b718885ffa3aaf252b4afff8fed98a5
child 640899 9bef0626ff2d9ae357a149cbc9c0cbaa64a18c0b
push id15309
push userffxbld-merge
push dateMon, 19 Apr 2021 17:51:21 +0000
treeherdermozilla-beta@842785ce363f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs1689664
milestone89.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1689664 - Ensure docshell/test/navigation/test_performance_navigation.html works with SHIP-BFCache, r=peterv This is similar pref enabling as what landed to couple of other tests already https://searchfox.org/mozilla-central/search?q=%2F%2F+If+Fission+is+disabled%2C+the+pref+is+no-op.&path= Differential Revision: https://phabricator.services.mozilla.com/D109312
docshell/test/navigation/mochitest.ini
docshell/test/navigation/test_performance_navigation.html
--- a/docshell/test/navigation/mochitest.ini
+++ b/docshell/test/navigation/mochitest.ini
@@ -115,17 +115,16 @@ support-files = file_online_offline_bfca
 [test_popup-navigates-children.html]
 [test_reload.html]
 support-files = file_reload.html
 [test_reserved.html]
 skip-if =
   (debug && e10s)  # bug 1263213
   (os == 'mac' && os_version == '10.14')  # Bug 1548821
 [test_performance_navigation.html]
-skip-if = fission # bug 1666602
 [test_sessionhistory.html]
 skip-if = verify && (os == 'mac') && debug && webrender # Hit MOZ_CRASH(Shutdown too long, probably frozen, causing a crash.) bug 1677545
 [test_dynamic_frame_forward_back.html]
 [test_sessionhistory_document_write.html]
 [test_sessionhistory_iframe_removal.html]
 support-files = file_sessionhistory_iframe_removal.html
 [test_session_history_entry_cleanup.html]
 [test_fragment_handling_during_load.html]
--- a/docshell/test/navigation/test_performance_navigation.html
+++ b/docshell/test/navigation/test_performance_navigation.html
@@ -24,15 +24,18 @@ bc.onmessage = function(msgEvent) {
     info("Got unexpected message from BroadcastChannel");
     return;
   }
   ok(result, "Bug 145971: Navigation type does not equal 2 when restoring document from session history.");
   SimpleTest.finish();
 };
 
 function runTest() {
-  window.open("test_bug145971.html", "", "width=360,height=480,noopener");
+  // If Fission is disabled, the pref is no-op.
+  SpecialPowers.pushPrefEnv({set: [["fission.bfcacheInParent", true]]}, () => {
+    window.open("test_bug145971.html", "", "width=360,height=480,noopener");
+  });
 }
 
 </script>
 </pre>
 </body>
 </html>