From b260b8912800700a1ca4c7260baba29d674d96a3 Mon Sep 17 00:00:00 2001
From: strudy-bot <>
Date: Mon, 9 Sep 2024 13:38:01 +0000
Subject: [PATCH] File report on Missing tasks in parallel steps in MediaStream
Image Capture
---
issues/image-capture-missingtask.md | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 issues/image-capture-missingtask.md
diff --git a/issues/image-capture-missingtask.md b/issues/image-capture-missingtask.md
new file mode 100644
index 00000000..8379636a
--- /dev/null
+++ b/issues/image-capture-missingtask.md
@@ -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*.
+
+Cc @dontcallmedom @tidoust
+
+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/).