Skip to content

Commit

Permalink
File report on Missing tasks in parallel steps in MediaStream Image C…
Browse files Browse the repository at this point in the history
…apture
  • Loading branch information
strudy-bot authored and dontcallmedom committed Sep 9, 2024
1 parent 2988fd8 commit b260b89
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions issues/image-capture-missingtask.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
Title: Missing tasks in parallel steps in MediaStream Image Capture
Tracked: N/A
Repo: 'https://github.com/w3c/mediacapture-image'
---

While crawling [MediaStream Image Capture](https://w3c.github.io/mediacapture-image/), the following algorithms fire an event, or resolve or reject a Promise, within a step that runs [in parallel](https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel) without first queuing a task:
* [ ] The [ImageCapture/takePhoto(photoSettings)](https://w3c.github.io/mediacapture-image/#dom-imagecapture-takephoto) algorithm resolves/rejects a promise directly in a step that runs in parallel
* [ ] The [ImageCapture/getPhotoCapabilities()](https://w3c.github.io/mediacapture-image/#dom-imagecapture-getphotocapabilities) algorithm resolves/rejects a promise directly in a step that runs in parallel
* [ ] The [ImageCapture/getPhotoSettings()](https://w3c.github.io/mediacapture-image/#dom-imagecapture-getphotosettings) algorithm resolves/rejects a promise directly in a step that runs in parallel
* [ ] The [ImageCapture/grabFrame()](https://w3c.github.io/mediacapture-image/#dom-imagecapture-grabframe) algorithm resolves/rejects a promise directly in a step that runs in parallel

See [Dealing with the event loop](https://html.spec.whatwg.org/multipage/webappapis.html#event-loop-for-spec-authors) in the HTML specification for guidance on how to deal with algorithm sections that run *in parallel*.

<sub>Cc @dontcallmedom @tidoust</sub>

<sub>This issue was detected and reported semi-automatically by [Strudy](https://github.com/w3c/strudy/) based on data collected in [webref](https://github.com/w3c/webref/).</sub>

0 comments on commit b260b89

Please sign in to comment.