| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <script> | 2 <script> |
| 3 if (window.testRunner) | 3 if (window.testRunner) |
| 4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
| 5 | 5 |
| 6 window.onmessage = function(evt) | 6 window.onmessage = function(evt) |
| 7 { | 7 { |
| 8 if (evt.data == "setHistoryLength") { | 8 if (evt.data == "setHistoryLength") { |
| 9 setHistoryLength(); | 9 setHistoryLength(); |
| 10 return; | 10 return; |
| 11 } else | 11 } else |
| 12 alert("Unknown message."); | 12 alert("Unknown message."); |
| 13 } | 13 } |
| 14 | 14 |
| 15 function setHistoryLength() | 15 function setHistoryLength() |
| 16 { | 16 { |
| 17 alert("About to shadow child window's history object: " + window.history); | 17 alert("About to shadow child window's history object: " + window.history); |
| 18 window.history = ""; | 18 window.history = ""; |
| 19 alert("Shadowed child window's history object: " + window.history); | 19 alert("Child window's history object should not be shadowed: " + window.hist
ory); |
| 20 parent.window.postMessage("done", "*"); | 20 parent.window.postMessage("done", "*"); |
| 21 } | 21 } |
| 22 | 22 |
| 23 </script> | 23 </script> |
| 24 <body> | 24 <body> |
| 25 HELLO THERE | 25 HELLO THERE |
| 26 </body> | 26 </body> |
| 27 </html> | 27 </html> |
| OLD | NEW |