| <html> |
| <head> |
| <title>Crash page</title> |
| <script> |
| var observer = new PerformanceObserver(() => {}); |
| function disconnectObserver() { |
| observer.disconnect(); |
| testRunner.notifyDone(); |
| } |
| function beginFetch() { |
| fetch('http://localhost/not-exists.jpg').catch(disconnectObserver); |
| } |
| function navigate() { |
| window.addEventListener("unload", beginFetch); |
| location.assign("about:blank"); |
| }; |
| testRunner.dumpAsText(); |
| testRunner.setCustomTextOutput(""); |
| testRunner.waitUntilDone(); |
| </script> |
| </head> |
| <body onload="navigate()"> |
| <p>This page will try to crash the renderer</p> |
| </body> |
| </html> |