Bug 940974 - in Australis' CustomizableUI, don't call beginBatchUpdate before potentially bailing and throwing, leading to the batch update stack being forever non-0, r=mikedeboer

This commit is contained in:
Gijs Kruitbosch 2013-11-28 13:34:25 +01:00
parent a01e77d129
commit eeba6d7474

View File

@ -295,7 +295,6 @@ let CustomizableUIInternal = {
if (gBuildAreas.has(area) && gBuildAreas.get(area).has(aToolbar)) {
return;
}
this.beginBatchUpdate();
let document = aToolbar.ownerDocument;
let areaProperties = gAreas.get(area);
@ -303,6 +302,7 @@ let CustomizableUIInternal = {
throw new Error("Unknown customization area: " + area);
}
this.beginBatchUpdate();
let placements = gPlacements.get(area);
if (!placements && areaProperties.has("legacy")) {
let legacyState = aToolbar.getAttribute("currentset");