Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/other-licenses/7zstub/src/CPP/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 2 kB image not shown  

 1378826.html   Interaktion und
PortierbarkeitHTML

 

 products/Sources/formale Sprachen/C/Firefox/dom/media/test/crashtests/1378826.html


<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>Bug 1378826 : Removing last video track from recorder stream crashes.</title>
</head>
<body>
<canvas id="canvas"></canvas>
<script type="text/javascript">

function wait(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}

function boom() {
  let canvas = document.getElementById("canvas");
  let ctx = canvas.getContext('2d');
  ctx.fillRect(10, 10, 100, 100);
  let stream = canvas.captureStream();
  let rec = new MediaRecorder(stream);
  // At the time of fixing this bug onstop would fire, but this may change in
  // future. As such defensively listen for onerror too to prevent this test
  // timing out.
  let stoppedPromise = new Promise(y => (rec.onstop = y,
                                         rec.onerror = e => y));
  rec.onstart = () => {
    // Remove the video track from the stream we're recording
    stream.removeTrack(stream.getTracks()[0]);
    // Recorder should stop or error in response to the above
    return stoppedPromise
    .then(() => {
      // Little wait to help get bad writes if they're going to happen
      wait(100)
      .then(() => {
        // Didn't crash, finish
        document.documentElement.removeAttribute("class");
      });
    });
  };
  rec.start();
}

window.onload = boom;

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

Messung V0.5 in Prozent
C=98 H=98 G=97

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.16Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-09-28) ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.