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.

Mercurial (c68fe15a81fc)

VCS Links

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
<!DOCTYPE HTML>
<html>
  <head>
    <title>Autoplay policy frame</title>
    <script type="text/javascript" src="manifest.js"></script>
    <script type="text/javascript" src="AutoplayTestUtils.js"></script>
    <script src="/tests/SimpleTest/EventUtils.js"></script>
    <style>
      video {
        width: 50%;
        height: 50%;
      }
    </style>
  </head>
  <body>
    <script>
      window.addEventListener("message",
        (event) => {
          if (event.data == "click") {
            SpecialPowers.wrap(document).notifyUserGestureActivation();
            event.source.postMessage("activated", "*");
          } else if (event.data == "play-audible") {
            playAndPostResult(false, event.source);
          } else if (event.data == "play-muted") {
            playAndPostResult(true, event.source);
          }
        });
      let w = window.opener || window.parent;
      w.postMessage("ready", "*");
    </script>
  </body>
</html>