From d8f4744710092baf18ba13f6bddc140c1e14a9d1 Mon Sep 17 00:00:00 2001 From: strudy-bot <> Date: Tue, 7 Jan 2025 09:46:50 +0000 Subject: [PATCH] File report on Missing tasks in parallel steps in Screen Capture --- issues/screen-capture-missingtask.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 issues/screen-capture-missingtask.md diff --git a/issues/screen-capture-missingtask.md b/issues/screen-capture-missingtask.md new file mode 100644 index 0000000..2cad594 --- /dev/null +++ b/issues/screen-capture-missingtask.md @@ -0,0 +1,14 @@ +--- +Title: Missing tasks in parallel steps in Screen Capture +Tracked: N/A +Repo: 'https://github.com/w3c/mediacapture-screen-share' +--- + +While crawling [Screen Capture](https://w3c.github.io/mediacapture-screen-share/), 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 [MediaDevices/getDisplayMedia()](https://w3c.github.io/mediacapture-screen-share/#dom-mediadevices-getdisplaymedia) 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/).