> LocalStorage is not available in private browsing mode. Other browsers just treat it as ephemeral/SessionStorage basically.
Correction: it’s not available in Firefox either, throws on get/set. It’s the Chromium family that’s the odd one out, but it’s so popular and testing in other browsers’ private windows so uncommon that developers often don’t realise that localStorage is fallible.