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

Unified Diff: third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash.html

Issue 1495533002: Robustify state-transitions in HTMLMediaElement::startDeferredLoad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash.html
diff --git a/third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash.html b/third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..c558972e11ae140f3d11d347cb0b02c3e522a031
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<title>Setting preload=metadata after calling load() w/ preload=none</title>
+<script src="media-file.js"></script>
+<p>PASS if no crash in Debug.</p>
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+}
+var video = document.createElement('video');
+video.preload = "none";
+document.addEventListener('DOMContentLoaded', function() {
philipj_slow 2015/12/02 13:41:14 Any particular reason to wait for DOMContentLoaded
+ video.src = findMediaFile('video', 'content/test');
+ video.load();
philipj_slow 2015/12/02 13:41:14 Setting the src attribute should have implicitly d
fs 2015/12/02 14:50:49 It seems it is, yes.
+ video.preload = "metadata";
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+});
+document.body.appendChild(video);
philipj_slow 2015/12/02 13:41:14 Does it need to be in the document?
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698