Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> How do multiple sites access the same localStorage?

With an iframe. Although Safari already has protections in place against this scenario: https://webkit.org/tracking-prevention/#partitioned-third-pa...



I support this behavior, but I wish it allowed users to opt-out per domain or something. The current behavior breaks localStorage on HTML5 games on itch.io (for iPad users, mostly) and there’s no real workaround (other than asking users to disable the setting entirely—something I don’t want them to do). It’s not even possible to detect this case and warn users, so they just think the games are broken…




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: