mw.loader.store: Wrap script eval in try/catch
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 27 Dec 2013 22:00:50 +0000 (23:00 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 5 Mar 2014 14:49:29 +0000 (15:49 +0100)
commit10fc91feac5c5241fa9fb6b9bd6c58b3b9351efc
treefff51e5e7df97719720497d473f6640c7bd1a23a
parent25bfbf4756bc0cf63bbbb2986aed54c09017140d
mw.loader.store: Wrap script eval in try/catch

All sorts of things can happen to our localStorage entry, from
clueless users through malicious scripts and browser bugs to hard disk
failures. Let's not explode irrecoverably when the code from store
refuses to execute.

Bug: 57567
Change-Id: I1b40a82595fe37dfeeb3648f7ecfbcac01bf9079
resources/mediawiki/mediawiki.js