Skip to content
Snippets Groups Projects
Commit cb2571aa authored by Mike de Boer's avatar Mike de Boer
Browse files

Bug 930950: also remove location attributes when a widget is removed. r=Gijs

parent c3218cf2
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment