| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 if (window.layoutTestController) { | 2 if (window.layoutTestController) { |
| 3 layoutTestController.dumpAsText(); | 3 layoutTestController.dumpAsText(); |
| 4 layoutTestController.waitUntilDone(); | 4 layoutTestController.waitUntilDone(); |
| 5 } | 5 } |
| 6 window.onload = function() { | 6 window.onload = function() { |
| 7 window.location = 'data:text/html,' + | 7 window.location = 'data:text/html,' + |
| 8 '%3Cscript%3E' + | 8 '%3Cscript%3E' + |
| 9 'try{' + | 9 'try{' + |
| 10 'history.pushState({},"","data:");' + | 10 'history.pushState({},"","data:");' + |
| 11 'document.write("FAIL data URL was manipula via pushState.");' + | 11 'document.write("FAIL data URL was manipula via pushState.");' + |
| 12 '} catch(e) {' + | 12 '} catch(e) {' + |
| 13 'document.write("PASS: data URLs cannot be manipulated via pushState.");
' + | 13 'document.write("PASS: data URLs cannot be manipulated via pushState.");
' + |
| 14 '}' + | 14 '}' + |
| 15 'if (window.layoutTestController)' + | 15 'if (window.layoutTestController)' + |
| 16 'layoutTestController.notifyDone();' + | 16 'layoutTestController.notifyDone();' + |
| 17 '%3C/script%3E'; | 17 '%3C/script%3E'; |
| 18 } | 18 } |
| 19 </script> | 19 </script> |
| OLD | NEW |