| <!-- webkit-test-runner [ enableBackForwardCache=true ] --> |
| if (window.testRunner && window.internals) { |
| testRunner.waitUntilDone(); |
| internals.settings.setBackForwardCacheSupportsPlugins(true); |
| setTimeout("testComplete()", 0); |
| setTimeout("startTest()", 0); |
| function testComplete() { |
| document.getElementById("ExamplePlugin").setAttribute("style", "display:none"); |
| window.location.href = 'resources/go-back.html'; |
| object { border-color: red; border-width: 2px; border-style:solid; } |
| <body onpageshow="pageShown();"> |
| This test - assuming it will pass - does the following:<br> |
| 1 - Has nested plugin elements<br> |
| 2 - Leaves the page, and the page enters the page cache<br> |
| 3 - Returns, pulling the page from the page cache<br> |
| If you're not running under DRT, you'll need to leave the page then return to it yourself. |
| <object type="application/x-webkit-test-netscape" width="500" height="375" id="ExamplePlugin"> |
| <img src="resources/apple.gif"> |
| Some fallback text to force a renderer. |
| (Yes, the extreme number of object elements are necessary to more reliably reproduce the crash. Leave them.) |