Closed Bug 1137692 Opened 9 years ago Closed 8 months ago

Impossible to add an element in toolbarbutton when several messages are selected

Categories

(Thunderbird :: Toolbars and Tabs, defect)

36 Branch
x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: ophelie.thiennot, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20150125222008

Steps to reproduce:

JavaScript called by General window, add with an overlay (chrome://messenger/content/messenger.xul) :

In chrome.manifest : 
overlay chrome://messenger/content/messenger.xul chrome://example/content/overlay.xul

In overlay.xul
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://saveYourMails/content/javaScript.js"/>
</overlay>

In javaScript.js :
el = el.contentDocument.getElementById("heading_wrapper") || el.contentDocument.getElementById("headingwrapper");
parentEl = el.getElementsByTagName("toolbar").item(0);
newEl = document.createElement("toolbarbutton");
          newEl.setAttribute("id", "hdrSaveButton");
          newEl.setAttribute("label", "save");
parentEl.appendChild(newEl);


Actual results:

no error, button don't appair


Expected results:

The button should be appair in toolbarbutton when several messages are selected. (Thunderbird 36.0) work between 24.0 and 31.0
Severity: normal → S3

toolbar for this bug report is gone. Please file new bug report if you see an issue when using the new unified toolbar

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