| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="resources/document-location.js"></script> | 3 <script src="resources/document-location.js"></script> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 testRunner.dumpBackForwardList(); | 5 testRunner.dumpBackForwardList(); |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 | 7 |
| 8 var myFrame; | 8 var myFrame; |
| 9 function myCallbackFunction() { | 9 function myCallbackFunction() { |
| 10 myFrame.src = '#'; | 10 myFrame.src = '#'; |
| 11 } | 11 } |
| 12 </script> | 12 </script> |
| 13 </head> | 13 </head> |
| 14 <body> | 14 <body> |
| 15 <p>This test verifies that setting the iframe.src through javascript to # does n
ot add a history item. If the test passes you'll see only one history item.</p> | 15 <p>This test verifies that setting the iframe.src through javascript to # does n
ot add a history item. If the test passes you'll see only one history item.</p> |
| 16 <script type="text/javascript"> | 16 <script type="text/javascript"> |
| 17 myFrame = document.createElement("iframe"); | 17 myFrame = document.createElement("iframe"); |
| 18 myFrame.src = "javascript:document.write('<script type=text/javascript>window.pa
rent.myCallbackFunction();<\/script>');"; | 18 myFrame.src = "javascript:document.write('<script type=text/javascript>window.pa
rent.myCallbackFunction();<\/script>'); document.close()"; |
| 19 document.body.appendChild(myFrame); | 19 document.body.appendChild(myFrame); |
| 20 </script> | 20 </script> |
| 21 </body> | 21 </body> |
| 22 </html> | 22 </html> |
| OLD | NEW |