HomePhabricator

mw.storage: Fix broken test (incompatible with Chrome 45)

Description

mw.storage: Fix broken test (incompatible with Chrome 45)

The localStorage global is read-only which Chrome 45 enforces.

Simplify things by dropping mediaWiki.storage.isStorageEnabled, and
by wrapping each operation with a try / catch.

Bug: T113413
Change-Id: Iecbdeb050b9a69febd3388898d98293a84588a94
(cherry picked from commit 430a0d3984fe188531175a295a24906d472abe42)

Details

Provenance
KrinkleAuthored on
Jdforrester-WMFCommitted on Sep 30 2015, 12:16 AM
Parents
rMW06523663df94: Merge "Moved LinksDeletionUpdate to a separate file"
Branches
Unknown
Tags
Unknown
ChangeId
Iecbdeb050b9a69febd3388898d98293a84588a94