iitc-project / ingress-intel-total-conversion

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.
http://iitc.jonatkins.com/
ISC License
989 stars 552 forks source link

Firefox + disabled localStorage #645

Open jonatkins opened 11 years ago

jonatkins commented 11 years ago

IITC needs localStorage to work - but in Firefox this can be disabled in about:config - dom.storage.enabled setting.

IITC fails badly in this case (fails to load, with no clue as to why) - it should at least notify the user, and maybe work to some extent without localStorage.

fkloft commented 11 years ago

I didn't test it, but I think I know the reason. When localStorage is disabled (either because of dom.storage.enabled or because cookies are disabled for the current domain - yes, it depends on the cookies settings), every access to localStorage throws an exception ("Error: The operation is insecure.") I also found a quick workaround which prevents these errors, but of course doesn't fix the issue