summaryrefslogtreecommitdiffstats
path: root/toolkit/content/tests/browser/file_document_open_audio.html
blob: 1234299c673d79cd3eb86f37eef3885ecae9e9c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!doctype html>
<title>Test for bug 1572798</title>
<script>
  function openVideo() {
    var w = window.open('', '', 'width = 640, height = 480, scrollbars=yes, menubar=no, toolbar=no, resizable=yes');
    w.document.open();
    w.document.write('<!DOCTYPE html><title>test popup</title><audio controls src="audio.ogg"></audio>');
    w.document.close();
  }
</script>
<button onclick="openVideo()">Open video</button>