Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / history / resources / cross-origin-replaces-history-object-child-iframe.html
1 <html>
2 <script>
3 if (window.testRunner)
4     testRunner.dumpAsText();
5
6 window.onmessage = function(evt)
7 {
8     if (evt.data == "setHistoryLength") {
9         setHistoryLength();
10         return;
11     } else
12         alert("Unknown message.");
13 }
14
15 function setHistoryLength()
16 {
17     alert("About to shadow child window's history object: " + window.history);
18     window.history = "";
19     alert("Child window's history object should not be shadowed: " + window.history);
20     parent.window.postMessage("done", "*");
21 }
22
23 </script>
24 <body>
25 HELLO THERE
26 </body>
27 </html>