Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / history / history-navigations-set-referrer.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner) {
6     testRunner.waitUntilDone();
7     testRunner.dumpAsText();
8 }
9
10 function test() {
11     history.replaceState("initialState", "", "");
12     history.pushState("", "", "other.html");
13     history.back();
14 }
15
16 onpopstate = function (evt) {
17     if (evt.state == "initialState")
18         location.href = "resources/check-referrer.html";
19 }
20 </script>
21 </head>
22 <body onload="test()">
23 <p>
24 Tests that when navigating back from a history entry that was created by
25 history.pushState(), the outgoing referrer is correctly updated.
26 </p>
27 <div>
28 FAIL: popstate event was never received
29 </div>
30 </body>
31 </html>
32