<!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>
