mediacapture-image
mediacapture-image copied to clipboard
Missing tasks in parallel steps in MediaStream Image Capture
While crawling MediaStream Image Capture, the following algorithms fire an event, or resolve or reject a Promise, within a step that runs in parallel without first queuing a task:
- [ ] The ImageCapture/takePhoto(photoSettings) algorithm resolves/rejects a promise directly in a step that runs in parallel
- [ ] The ImageCapture/getPhotoCapabilities() algorithm resolves/rejects a promise directly in a step that runs in parallel
- [ ] The ImageCapture/getPhotoSettings() algorithm resolves/rejects a promise directly in a step that runs in parallel
- [ ] The ImageCapture/grabFrame() algorithm resolves/rejects a promise directly in a step that runs in parallel
See Dealing with the event loop in the HTML specification for guidance on how to deal with algorithm sections that run in parallel.
Cc @dontcallmedom @tidoust
This issue was detected and reported semi-automatically by Strudy based on data collected in webref.