DXR will be turned off on Tuesday, December 29th. It will redirect to Searchfox.
See the announcement on Discourse.

DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
<!DOCTYPE HTML>
<html>
<head>
  <title>Bug 1580015 - video hangs infinitely during playing subtitle</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="text/javascript" src="manifest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  <style>
    .container {
      width: 500px;
      height: 300px;
      background: pink;
      display: flex;
      justify-content: center;
    }

    video {
      min-width: 95%;
      max-width: 95%;
      max-height: 95%;
    }
  </style>
</head>
<body>
<div class="container">
<video id="v" src="gizmo.mp4" controls>
  <track src="basic.vtt" kind="subtitles" default>
</video>
</div>
<script type="text/javascript">
/**
 * This test is used to ensure that we don't go into an infinite processing loop
 * during playing subtitle when setting those CSS properties on video.
 */
SimpleTest.waitForExplicitFinish();

let video = document.getElementById("v");
// We don't need to play whole video, in order to reduce test time, we can start
// from the half, which can also reproduce the issue.
video.currentTime = 3.0;
video.play();
video.onended = () => {
  SimpleTest.finish();
}

</script>
</body>
</html>