Adding this issue to track the document.exitPictureInPicture() request, as it needs the same kind of overhaul that the requestPictureInPicture() algorithm does (see #245)
I think it may be solved by just wrapping the whole thing inside a queued task. It still needs to probably be in-parallel, given that we don't really know/can't specify how long "closing the PIP window" will take, or in how many disjoint/asynchronous steps that actually happen inside the browser implementations. It could be 1, it could be many.
Edit: I will be adding things that need to change as I come across them, thinking about this algorithm.
Adding this issue to track the
document.exitPictureInPicture()request, as it needs the same kind of overhaul that therequestPictureInPicture()algorithm does (see #245)I think it may be solved by just wrapping the whole thing inside a queued task. It still needs to probably be in-parallel, given that we don't really know/can't specify how long "closing the PIP window" will take, or in how many disjoint/asynchronous steps that actually happen inside the browser implementations. It could be 1, it could be many.
Edit: I will be adding things that need to change as I come across them, thinking about this algorithm.