mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 930950: also remove location attributes when a widget is removed. r=Gijs
This commit is contained in:
parent
1e3930ad3d
commit
19faa52e2c
@ -599,10 +599,12 @@ let CustomizableUIInternal = {
|
||||
|
||||
this.notifyListeners("onWidgetBeforeDOMChange", widgetNode, null, container, true);
|
||||
|
||||
// We remove location attributes here to make sure they're gone too when a
|
||||
// widget is removed from a toolbar to the palette. See bug 930950.
|
||||
this.removeLocationAttributes(widgetNode);
|
||||
if (gPalette.has(aWidgetId) || this.isSpecialWidget(aWidgetId)) {
|
||||
container.removeChild(widgetNode);
|
||||
} else {
|
||||
this.removeLocationAttributes(widgetNode);
|
||||
widgetNode.removeAttribute("tabindex");
|
||||
if (widgetNode.getAttribute("type") == "wrap") {
|
||||
widgetNode.removeAttribute("type");
|
||||
|
Loading…
Reference in New Issue
Block a user