Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: third_party/WebKit/LayoutTests/media/crash-in-media-moved-to-newdocument.html

Issue 2594353003: Crash in blink::beforeCallEnteredCallback() (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698