mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 872403 - Add basic sanity check when restoring legacy state of toolbars. r=mconley.
This commit is contained in:
parent
7895e783d3
commit
75313cf382
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user