chromium/third_party/blink/web_tests/external/wpt/mediacapture-streams/crashtests/enumerateDevices-after-discard-1.https.html

<html class="test-wait">
<head>
  <title>
    Test enumerateDevices() calls either side of browsing context discard
  </title>
</head>
<script>
  const frame = document.createElement('frame');
  document.documentElement.appendChild(frame);
  const devices = frame.contentWindow.navigator.mediaDevices;
  devices.enumerateDevices();
  frame.remove();
  devices.enumerateDevices();
  // Wait long enough to expect the async enumerateDevices() code to complete.
  navigator.mediaDevices.enumerateDevices().then(
    () => document.documentElement.removeAttribute("class"));
</script>
</html>