Commit 16edd274 authored by Arthur Sonzogni's avatar Arthur Sonzogni Committed by Commit Bot

Fix test: http/tests/navigation/back-send-referrer.html

The navigation may be triggered before the load event. When it happens,
the history entry must replace the current one instead of being appended
to it. Then history.go(-1) fails in the next document.

This CL make the navigation to happen after the load event.

Bug: 862580, 831155
Change-Id: I4a48d50f5899e3fd65c74d9a89ab836ae94ba7be
Reviewed-on: https://chromium-review.googlesource.com/1133261Reviewed-by: default avatarNate Chapin <japhet@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578998}
parent c8364d98
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
testRunner.dumpAsText(); testRunner.dumpAsText();
} }
window.name = "0"; window.onload = function() {
window.location = "resources/back-send-referrer-helper.php"; setTimeout(function() {
window.name = "0";
window.location = "resources/back-send-referrer-helper.php"
}, 0);
}
</script> </script>
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