mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 896596 - _onDragStart hack in CustomizeMode should not cause placeholders to get inserted after exiting customize mode. r=Gijs.
This commit is contained in:
parent
40202a3ac9
commit
5816f65fbd
@ -699,8 +699,13 @@ CustomizeMode.prototype = {
|
||||
// item as it appeared before it was hidden.
|
||||
let win = aEvent.target.ownerDocument.defaultView;
|
||||
win.setTimeout(function() {
|
||||
item.hidden = true;
|
||||
this._showPanelCustomizationPlaceholders();
|
||||
// For automated tests, we sometimes start exiting customization mode
|
||||
// before this fires, which leaves us with placeholders inserted after
|
||||
// we've exited. So we need to check that we are indeed customizing.
|
||||
if (this._customizing && !this._transitioning) {
|
||||
item.hidden = true;
|
||||
this._showPanelCustomizationPlaceholders();
|
||||
}
|
||||
}.bind(this), 0);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user