mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Fix for 173444, custom toolbars show up (incorrectly) in popup windows.
This commit is contained in:
parent
89819f854f
commit
27733a95d6
@ -529,7 +529,7 @@ function addNewToolbar()
|
||||
// if a conflict is found
|
||||
var nameToId = "__customToolbar_" + name.value.replace(" ", "");
|
||||
var existingToolbar = gToolboxDocument.getElementById(nameToId);
|
||||
if (existingToolbar || !name.value) {
|
||||
if (existingToolbar) {
|
||||
message = stringBundle.getFormattedString("enterToolbarDup", [name.value]);
|
||||
} else {
|
||||
break;
|
||||
|
@ -72,7 +72,8 @@
|
||||
toolbar.setAttribute("mode", this.getAttribute("mode"));
|
||||
toolbar.setAttribute("iconsize", this.getAttribute("iconsize"));
|
||||
toolbar.setAttribute("context", this.toolbarset.getAttribute("context"));
|
||||
|
||||
toolbar.setAttribute("class", "chromeclass-toolbar");
|
||||
|
||||
this.insertBefore(toolbar, this.toolbarset);
|
||||
return toolbar;
|
||||
]]>
|
||||
|
Loading…
Reference in New Issue
Block a user