mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1014238 - don't break on invalid customization state, r=jaws
--HG-- extra : rebase_source : a803b73d7eda4ad38073f8d280324710666c16c7
This commit is contained in:
parent
f66598fa77
commit
c32ba53958
@ -1731,7 +1731,12 @@ let CustomizableUIInternal = {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
gSavedState = JSON.parse(state);
|
gSavedState = JSON.parse(state);
|
||||||
|
if (typeof gSavedState != "object" || gSavedState === null) {
|
||||||
|
throw "Invalid saved state";
|
||||||
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
Services.prefs.clearUserPref(kPrefCustomizationState);
|
||||||
|
gSavedState = {};
|
||||||
LOG("Error loading saved UI customization state, falling back to defaults.");
|
LOG("Error loading saved UI customization state, falling back to defaults.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user