Re: [w3c/screen-orientation] Promise for unlock()? (#104)

Reopening, as this is still an issue. 

@saschanaz, @foolip, @michaelwasserman, we've now hit this issue also in WebKit (this was also an issue in Firefox, IIRC).

The problem is that we end up with a race condition:

 1. unlock() makes IPC call.
 2. exitFullscreen() makes IPC call.

The IPC calls can arrive and be processed out of order. That makes a mess for FS API and this one. 

I'd like to make .unlock() return a promise. Would you have any objections to us doing that? 





-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/issues/104#issuecomment-1275417877
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/screen-orientation/issues/104/1275417877@github.com>

Received on Wednesday, 12 October 2022 00:03:43 UTC