commit-queue@webkit.org | 5c78a47 | 2020-05-21 20:14:36 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | |
| 4 | <script> |
| 5 | |
| 6 | function runTest() { |
| 7 | if (window.testRunner) |
| 8 | testRunner.dumpAsText(); |
| 9 | |
| 10 | x.src = "data:video/mp4;base64,AA"; |
| 11 | y.focus(); |
| 12 | window.onfocus = z.oncontextmenu; |
| 13 | } |
| 14 | |
| 15 | function eventHandler() { |
| 16 | x1.innerHTML = ""; |
| 17 | } |
| 18 | </script> |
| 19 | |
| 20 | <body onload=runTest()> |
| 21 | <p>The test passes if no crash.</p> |
| 22 | <time id="x1"> |
| 23 | <label id="z" oncontextmenu="eventHandler()" ></label> |
| 24 | <iframe id="y"></iframe> |
| 25 | <embed id="x"></embed> |
| 26 | |
| 27 | </body> |
| 28 | </html> |