OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>Test for failing EventDispatchForbiddenScope assert when moving a |
| 3 video with text track between documents.</p> |
| 4 <video></video> |
| 5 <iframe></iframe> |
| 6 <script> |
| 7 if (window.testRunner) |
| 8 testRunner.dumpAsText(); |
| 9 |
| 10 var video = document.querySelector("video"); |
| 11 var track = document.createElement("track"); |
| 12 |
| 13 // Note: The order of setting the text track mode and appending the |
| 14 // track element is important, in terms of implementation and spec: |
| 15 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28973 |
| 16 track.track.mode = "showing"; |
| 17 video.appendChild(track); |
| 18 |
| 19 // Move the video element to another document. |
| 20 var iframe = document.querySelector("iframe"); |
| 21 iframe.contentDocument.body.appendChild(video); |
| 22 </script> |
OLD | NEW |