Open beaufortfrancois opened 3 months ago
We need to investigate if the algorithm and the implementations need to be updated.
I note that the two algorithms that the spec currently says run "in parallel" must be updated, regardless of whether implementations need to be. As written, they are incorrect: a Promise
cannot be resolved/rejected directly within steps that run in parallel. If the steps do run in parallel, then a task must be queued. See guidance in Dealing with the event loop in HTML and in particular "you must not directly access main-thread artifacts from a background thread [...] Doing so would create data races observable to JavaScript code"
As originally posted by @marcoscaceres in https://github.com/w3c/picture-in-picture/pull/227#discussion_r1635906594:
We need to investigate if the algorithm and the implementations need to be updated.