web-platform-tests / results-collection

Other
41 stars 46 forks source link

Timeout in mediastream Picture-in-Picture test #631

Closed beaufortfrancois closed 6 years ago

beaufortfrancois commented 6 years ago

picture-in-picture/mediastream.html test times out in Safari. I believe it is because mediastreamVideoLoadedPromise is pending forever.

Even though <video> is marked as autoplay and <canvas> is drawn, onloadedmetadata is never fired. @jernoble is that a known issue?


  const canvas = document.createElement('canvas');
  const video = document.createElement('video');
  const mediastreamVideoLoadedPromise = new Promise((resolve, reject) => {
    canvas.getContext('2d').fillRect(0, 0, canvas.width, canvas.height);
    video.autoplay = true;
    video.srcObject = canvas.captureStream(60 /* fps */);
    video.onloadedmetadata = () => {
      resolve(video);
    };
    video.onerror = error => {
      reject(error);
    };
  });
  await mediastreamVideoLoadedPromise;
jugglinmike commented 6 years ago

This sounds like a possible test/browser bug rather than an issue in results collection. Is that right?

beaufortfrancois commented 6 years ago

You're right. I've filed https://github.com/web-platform-tests/wpt/issues/14177 instead. Sorry for this.

jugglinmike commented 6 years ago

No worries!