toolkit/components/pictureinpicture/tests/test-media-stream.html
author Andy Leiserson <aleiserson@mozilla.com>
Sat, 19 Jul 2025 16:44:54 +0000 (5 hours ago)
changeset 797257 246e16bb06c941d6f64d807d43c807bfba04ae86
parent 552364 1581160e62e639714efe31ccf89e1f7f3c07d202
permissions -rw-r--r--
Bug 1976958 - Update wgpu to b83c9cf (2025-07-10) r=webgpu-reviewers,supply-chain-reviewers,teoxoy Differential Revision: https://phabricator.services.mozilla.com/D257047
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Picture-in-Picture tests</title>
  <script type="text/javascript" src="click-event-helper.js"></script>
</head>
<style>
  video {
    display: block;
    border: 1px solid black;
  }
</style>
<body>
  <script>
    function fireEvents() {
      for (let videoID of ["with-controls", "no-controls"]) {
        let video = document.getElementById(videoID);
        let event = new CustomEvent("MozTogglePictureInPicture", { bubbles: true });
        video.dispatchEvent(event);
      }
    }
  </script>
</body>
</html>