Iframes with Firefox

I’ve seen this problem mentioned before, but a solution is notoriously absent.

When my game is loaded through an iframe (such as itch.io or kongregate) it can’t access the playerprefs at all. I managed to get around the problem in Chrome by using the html code to save to localStorage, but on Firefox this gives me a “SecurityError: The operation is insecure” error.

Any ideas? Everything works perfectly fine when not loading the game through an iframe.

I feel like I’m the only one having this problem.

Nope, defnitely having this issue still even in 5.2.1p3 which the patch notes mention WebGL: Workaround for IndexedDB not available in Firefox when running in iframe.

it doesn’t actually fix it.

It fixed crashing related to that :slight_smile:

Firefox does not support IndexedDB in iFrames yet, but that is expected to change in Firefox 43, which will be out in December.