Bug 872403 - Add basic sanity check when restoring legacy state of toolbars. r=mconley.

This commit is contained in:
Blair McBride 2013-05-15 19:05:02 +12:00
parent 7895e783d3
commit 75313cf382

View File

@ -216,7 +216,7 @@ let CustomizableUIInternal = {
if (!gPlacements.has(area) && areaProperties.has("legacy")) {
let legacyState = aToolbar.getAttribute("currentset");
if (legacyState) {
legacyState = legacyState.split(",");
legacyState = legacyState.split(",").filter(s => s);
}
// Manually restore the state here, so the legacy state can be converted.