| <script src=media-file.js></script> |
| <script src=video-test.js></script> |
| run('internals.settings.setAllowsInlineMediaPlayback(false)'); |
| iframe = document.querySelector('iframe'); |
| mediaElement = video = iframe.contentDocument.createElement('video'); |
| iframe.contentDocument.body.appendChild(video); |
| video.src = findMediaFile("video", "content/test"); |
| video.style.width = '100%'; |
| video.style.height = '100%'; |
| video.addEventListener('webkitbeginfullscreen', beginfullscreen); |
| video.addEventListener('webkitfullscreenchange', beginfullscreen); |
| waitForEvent('canplaythrough', canplaythrough); |
| function canplaythrough() { |
| function beginfullscreen() { |
| consoleWrite("EVENT(webkitbeginfullscreen)"); |
| run('iframe.src = "about:blank"'); |
| setTimeout(endTest, 100); |
| <body onload="runTest()"> |
| <div>Destroy the document containing a video while that video is in fullscreen; should not crash.</div> |