dom/media/test/crashtests/audioworkletprocessor-recursion.html
author Gabriel Luong <gabriel.luong@gmail.com>
Sun, 13 Jul 2025 14:48:08 +0000 (5 hours ago)
changeset 796394 05ceace273412fbc2ac95622308ac3e8573779a8
parent 754208 e3de3b34123ba09e11550d6fc44549e426a8e4aa
permissions -rw-r--r--
Bug 1928585 - Handle history navigation back to the homepage when the location changes to about:home r=android-reviewers,jonalmeida Differential Revision: https://phabricator.services.mozilla.com/D255402
<!DOCTYPE html>
<html class="reftest-wait">
<script type="worklet">
function recursive(a) {
  if(a < 0) return 0;
    return recursive(a - 1);
}
recursive(2400);
</script>
<script>
var ac = new AudioContext();
var e = document.querySelector("script[type=worklet]");
var text = e.innerText;
const blob = new Blob([text], { type: "application/javascript" });
var url = URL.createObjectURL(blob);

ac.audioWorklet.addModule(url).then(() => {
  document.documentElement.removeAttribute("class");
});
</script>
</html>