Re:P2P Matrix
by kibwen on Tuesday June 02, 2020 @05:39PM
(#23396654)
A big question that I don't see addressed in the text or asked here yet: why does this require the user to not be in private browsing mode? Some necessary API that's not available in incognito mode? Is the restriction temporary?
[ Parent
| on HN ]
Empirically service workers don't seem to work in private browsing mode, and the demo relies on running Dendrite as a service worker.
> In Firefox, Service Worker APIs are also hidden and cannot be used when the user is in private browsing mode.
Says https://developer.mozilla.org/en-US/docs/Web/API/Service_Wor...
Doesn't any difference then become a way for websites to detect if you're in incognito, which is something browsers have been fighting back and forth every version?
I'm not a web dev, but I'd guess this is because the implementation relies on browser storage, which is removed when a private browsing session ends. So possibly it would work, but only until the tab / window was closed?