Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/media/crash-in-media-moved-to-newdocument.html |
| diff --git a/third_party/WebKit/LayoutTests/media/crash-in-media-moved-to-newdocument.html b/third_party/WebKit/LayoutTests/media/crash-in-media-moved-to-newdocument.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5959177efac581b2c74aae04a63e95a6020e645f |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/media/crash-in-media-moved-to-newdocument.html |
| @@ -0,0 +1,18 @@ |
| +<!DOCTYPE html> |
| +<script src="../resources/testharness.js"></script> |
| +<script src="../resources/testharnessreport.js"></script> |
| +<iframe width=400 height=300></iframe> |
| +<script> |
| +test(() => { |
| + var media = document.createElement('video'); |
| + media.src = 'nosuchurl'; |
| + |
| + var promise = media.play(); |
| + if (promise != undefined) { |
|
mlamouri (slow - plz ping)
2016/12/23 12:00:26
I don't think you need this, it will return a prom
Anton Obzhirov
2017/01/09 15:35:54
ok
|
| + promise.then(() => { |
| + }).catch((error) => { |
| + }); |
|
mlamouri (slow - plz ping)
2016/12/23 12:00:26
Can you make this an async_test and add unreach on
Anton Obzhirov
2017/01/09 15:35:54
Will do.
|
| + } |
| + window.frames[0].document.body.appendChild(media); |
| +}, "Test for crbug/676004: Crash in blink::beforeCallEnteredCallback()"); |
| +</script> |