Commit 1c1c20f3 authored by Olli Pettay's avatar Olli Pettay
Browse files

Bug 1670973, add a test to check how http redirects affect to the session history, r=peterv

The old implementation and SHIP seem to have the same behavior.

Differential Revision: https://phabricator.services.mozilla.com/D123117
parent a2ff7783
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
<!DOCTYPE HTML>
<html>
<head>
  <script>
    window.onpagehide = function(event) {
      opener.is(event.persisted, false, "Should have disabled bfcache for this test.");
    }

    window.onpageshow = function(event) {
      opener.pageshow();
    }
  </script>
</head>
<body>
</body>
</html>
+1 −0
Original line number Diff line number Diff line
Cache-control: no-store
+16 −0
Original line number Diff line number Diff line
<!DOCTYPE HTML>
<html>
<head>
  <script>
    window.onpagehide = function(event) {
      opener.is(event.persisted, false, "Should have disabled bfcache for this test.");
    }

    window.onpageshow = function(event) {
      opener.pageshow();
    }
  </script>
</head>
<body>
</body>
</html>
+1 −0
Original line number Diff line number Diff line
Cache-control: no-store
+6 −0
Original line number Diff line number Diff line
@@ -66,6 +66,11 @@ support-files =
  file_scrollRestoration_part2_bfcache.html
  file_scrollRestoration_part3_nobfcache.html
  file_scrollRestoration_part3_nobfcache.html^headers^
  file_session_history_on_redirect.html
  file_session_history_on_redirect.html^headers^
  file_session_history_on_redirect_2.html
  file_session_history_on_redirect_2.html^headers^
  redirect_handlers.sjs
  frame_load_as_example_com.html
  frame_load_as_example_org.html
  frame_load_as_host1.html
@@ -132,6 +137,7 @@ support-files = file_reload.html
skip-if =
  (debug && e10s)  # bug 1263213
[test_performance_navigation.html]
[test_session_history_on_redirect.html]
[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]
Loading