New issue
Advanced search Search tips

Issue 882730 link

Starred by 2 users

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Image Capture: InvaildStateError does not thrown when invoking getPhotoCapabilities()/getPhotoSettings() with an ended Track

Reported by xiuqix.j...@intel.com, Sep 11

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Steps to reproduce the problem:
Debug in the console as below:
   let canvas = document.createElement("canvas");
   document.body.appendChild(canvas);
   let context = canvas.getContext('2d');
   context.fillStyle = 'red';
   context.fillRect(0, 0, 10, 10);
   let stream = canvas.captureStream();
   let videoTrack = stream.getVideoTracks()[0];
   videoTrack.stop();

   let capturer = new ImageCapture(videoTrack);
   capturer.getPhotoCapabilities();
   capturer.getPhotoSettings(); 

What is the expected behavior?
Throw "InvaildStateError" error.

What went wrong?
InvaildStateError does not thrown.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 71.0.3547.0  Channel: canary
OS Version: 10.0
Flash Version: 

According to spec: https://w3c.github.io/mediacapture-image/#dom-imagecapture-getphotocapabilities
 
Components: Blink>GetUserMedia
Labels: Needs-Triage-M71
Components: -Blink>GetUserMedia Blink>ImageCapture
Labels: -Pri-2 -Needs-Triage-M71 OS-Android OS-Chrome OS-Linux OS-Mac Pri-3

Sign in to add a comment