HomePhabricator

Replace use of jStorage with mw.storage

Description

Replace use of jStorage with mw.storage

Use the standardised MediaWiki storage system for the simple use
case of disabling/enabling Popups. The jStorage library is 12kb
uncompressed and cannot be justified for this usage (and if it becomes
the standardised library mw.storage will begin using it)

This means that browsers with full localStorage or no localStorage
support will not be able to disable Popups. Given the current ecosystem
of the web - localStorage is widely supported - and the fact that grade
A browsers enjoy localStorage support - this is not a problem.
See https://github.com/wikimedia/mediawiki/blob/REL1_27/resources/src/startup.js#L59

Changes:

  • Stop using jStorage
  • Cleanup and migrate previous values in jStorage with plan for removing this

in a month.

Bug: T136241
Change-Id: I6dac2911e84d6cb20731be34add01576cf407c46

Details

Provenance
JdlrobsonAuthored on May 13 2016, 8:15 PM
Parents
rEPOPfeb0c763815e: Render settings via template
Branches
Unknown
Tags
Unknown
References
refs/changes/58/288658/14
ChangeId
I6dac2911e84d6cb20731be34add01576cf407c46