Commit 62370572 authored by Hitoshi Yoshida's avatar Hitoshi Yoshida Committed by Commit Bot

BFCache: Make navigation/back-to-get-after-post work with BFCache

On backward/forward navigations, backward/forward cache changes some
behavior around the navigation.

This CL updates a test navigation/back-to-get-after-post to work
with backward/forward cache.


Bug: 1132180
Change-Id: I86a99eddffbe8c25dc932258035214a60314b34b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2520557Reviewed-by: default avatarFergal Daly <fergal@chromium.org>
Reviewed-by: default avatarRakina Zata Amni <rakina@chromium.org>
Commit-Queue: Hitoshi Yoshida <peria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826157}
parent ef949e14
...@@ -13,7 +13,7 @@ if (window.testRunner) { ...@@ -13,7 +13,7 @@ if (window.testRunner) {
testRunner.waitUntilDone(); testRunner.waitUntilDone();
} }
window.onload = function() { window.onpageshow = function() {
setTimeout(function() { setTimeout(function() {
if (sessionStorage.getItem("backToGet") == null) { if (sessionStorage.getItem("backToGet") == null) {
sessionStorage.setItem("backToGet", "step1"); sessionStorage.setItem("backToGet", "step1");
......
<script> <script>
window.onload = function() { window.onpageshow = function() {
setTimeout(function() { setTimeout(function() {
if (sessionStorage.getItem("backToGet") == "step1") { if (sessionStorage.getItem("backToGet") == "step1") {
sessionStorage.setItem("backToGet", "step2"); sessionStorage.setItem("backToGet", "step2");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment