3 ms·
Fair, but how does one claim the same object on two pages in a race-free manner? You could allow them to be smuggled through postMessage, but then two pages wo
by mmastrac 5y ago
Fair, but how does one claim the same object on two pages in a race-free manner?
You could allow them to be smuggled through postMessage, but then two pages would have to coordinate creation/reception of the lock.
I'd love to hear better solutions as I might be too tired pre-coffee to brainstorm something more elegant. I find it interesting that Windows effectively uses global string-named mutexes and overall still has a few very rare conflicts that usually make the news [1].
[1] https://geek-week.imtqy.com/articles/en488834/index.html https://geek-week.imtqy.com/articles/en488834/index.html