| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <script> | |
| 3 window.finish = function() | |
| 4 { | |
| 5 if (testRunner) | |
| 6 testRunner.notifyDone(); | |
| 7 } | |
| 8 | |
| 9 window.log = function(message) { | |
| 10 document.getElementById("result").innerHTML += message + "<br>"; | |
| 11 } | |
| 12 | |
| 13 window.failure = function(message) { | |
| 14 log("FAIL: " + message); | |
| 15 finish(); | |
| 16 } | |
| 17 | |
| 18 function test() | |
| 19 { | |
| 20 if (window.testRunner) { | |
| 21 testRunner.dumpAsText(); | |
| 22 testRunner.waitUntilDone(); | |
| 23 testRunner.setCanOpenWindows(); | |
| 24 testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1); | |
| 25 } | |
| 26 log("open page with data urls"); | |
| 27 window.open("resources/cached-page-with-data-urls.html"); | |
| 28 } | |
| 29 </script> | |
| 30 | |
| 31 <body onload="test()"> | |
| 32 <p>This tests that going back in history with page cache enabled is | |
| 33 not going to crash/ASSERT when the previous page has data:// URLs.</p> | |
| 34 <div id="result"></div> | |
| 35 </body> | |
| 36 </html> | |
| OLD | NEW |