Closed Bug 1509647 Opened 6 years ago Closed 2 years ago

Folder location widget on toolbar loses label if a new folder is created

Categories

(MailNews Core :: Backend, defect)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: aceman, Assigned: aceman)

References

Details

The folder location button on toolbar (<menulist id="locationFolders">) loses the folder label if a new folder is created (e.g. rightclick in folder pane -> new subfolder). This is caused by the listener inside the widget that calls this._teardown() from OnItemAdded() which kills the menupopup but does not rebuild it when the parent is a menulist (which is the case here). See the comment above this._ensureInitialized(); in the constructor of folderWidgets.xml.
There are some places that tear down the menupopup externally, e.g. https://searchfox.org/comm-central/source/mailnews/base/prefs/content/am-server-advanced.js#52, so these need to be accomodated, so that _teardown() does not rebuild the menu without picking up the new attributes set.
Component: Toolbars and Tabs → Backend
Product: Thunderbird → MailNews Core
Severity: normal → S3

Obsolete with version 115

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.