mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
a01e77d129
commit
eeba6d7474
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user