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

Unified Diff: content/test/data/media/session/embed-unload.html

Issue 2711293003: Media Session: add test for crash with command send on iframe during unload. (Closed)
Patch Set: add comment Created 3 years, 10 months 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 | « content/test/BUILD.gn ('k') | content/test/data/media/session/embedder.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/session/embed-unload.html
diff --git a/content/test/data/media/session/embed-unload.html b/content/test/data/media/session/embed-unload.html
new file mode 100644
index 0000000000000000000000000000000000000000..676280f2114e50916039c2a8dbf4c159483395dc
--- /dev/null
+++ b/content/test/data/media/session/embed-unload.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<script>
+navigator.mediaSession.playbackState = 'playing';
+window.addEventListener('unload', function() {
+ navigator.mediaSession.playbackState = 'none';
+});
+</script>
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/data/media/session/embedder.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698