mediawiki.storage: Catch exceptions on window.localStorage property access
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 24 Oct 2016 23:00:45 +0000 (00:00 +0100)
committerGilles <gdubuc@wikimedia.org>
Tue, 25 Oct 2016 13:28:38 +0000 (13:28 +0000)
commit55b83097583e2ea63cfd161f95d5973d59af2b5d
treec48cac23d67f6ef065f9958ffd0bda786d784147
parent188549ad122c658681556999388cd1394bc6eb20
mediawiki.storage: Catch exceptions on window.localStorage property access

Follows-up 430a0d3984, which created a private property that stored a
reference to the localStorage object outside the get and set methods.

Where previously it was used directly, and as such, covered by
the try/catch around getItem and setItem calls.

Bug: T148998
Change-Id: Ibe75408913d4ffbf1791e1a6470296b29f809185
resources/src/mediawiki/mediawiki.storage.js