chromium/third_party/blink/web_tests/http/tests/media/autoplay/resources/webaudio-iframe-with-gesture.html

<!DOCTYPE html>
<html>
<style>
html, body { width: 100%; height: 100%; }
</style>
<body>
<script>
document.body.addEventListener('click', () => {
  let result = 'failed';

  try {
    const ac = new AudioContext();
    result = ac.state;
  } catch (e) {
    result = 'creation_failed';
  }

  top.postMessage(result, '*');
}, { once: true });
</script>