https-everywhere icon indicating copy to clipboard operation
https-everywhere copied to clipboard

Use the storage API rather than localStorage everywhere.

Open Hainish opened this issue 9 years ago • 6 comments

localStorage isn't reliably present, and gives security warnings when accessed while cookies are disabled. It'd be better to use storage instead.

See https://github.com/EFForg/https-everywhere/issues/11948

Hainish avatar Aug 17 '17 22:08 Hainish

@Hainish are the referenced issues duplicates of this? This issue seems quite important to me for webextensions.

J0WI avatar Oct 15 '17 13:10 J0WI

@J0WI #12939 is.

ghost avatar Oct 16 '17 14:10 ghost

@Hainish I'm editing the issue to make it non-ruleset specific, we should deprecate localStorage everywhere.

cowlicks avatar Oct 17 '17 18:10 cowlicks

I still don't see the type of issue in your description. Can you edit your issue to add this (perhaps referring to the issue template?)

https-everywhere-bot avatar Oct 17 '17 18:10 https-everywhere-bot

@cowlicks I could try doing that, but please review my PR without delays.

ghost avatar Oct 17 '17 21:10 ghost

@J0WI I don't think this fix is strictly required for the move to full WebExtensions. However I've opened #13356 as a fix, which migrates all settings from localStorage.

Hainish avatar Oct 26 '17 22:10 Hainish