Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Add Ons do not work in OS X special email view

  • 1 reply
  • 2 have this problem
  • 2 views
  • Paskiausią atsakymą parašė Wayne Mery

more options

If you receive an email in Thunderbird in OS X, there will be a notification window in the upper right corner of the screen. Here's a picture of this: http://lts.lehigh.edu/sites/lts.lehigh.edu/files/newmailprev.JPG

You can click on this notification and then there will show up the email within a new window, but it's a simplified view and my add on does not work in it.

The error console shows an error in the following function:

function onPageLoad(event){ if(navigator.onLine){ if(gFolderDisplay.selectedCount>0){ var doc = event.originalTarget; // doc is document that triggered "onload" event var linkElement = doc.getElementsByTagName("a"); var linkNumber = linkElement.length;

if(linkNumber > 0){ for(var i = 0; i<linkNumber;i++){ var aElement = linkElement[i]; -> var hrefValue = aElement.getAttribute("href");

The error message says, aElement is null.

I think the problem is that Thunderbird can't read <a> elements on this special message window. In the "normal" view, my add on works just fine, the same with linux and windows.

If you receive an email in Thunderbird in OS X, there will be a notification window in the upper right corner of the screen. Here's a picture of this: http://lts.lehigh.edu/sites/lts.lehigh.edu/files/newmailprev.JPG You can click on this notification and then there will show up the email within a new window, but it's a simplified view and my add on does not work in it. The error console shows an error in the following function: function onPageLoad(event){ if(navigator.onLine){ if(gFolderDisplay.selectedCount>0){ var doc = event.originalTarget; // doc is document that triggered "onload" event var linkElement = doc.getElementsByTagName("a"); var linkNumber = linkElement.length; if(linkNumber > 0){ for(var i = 0; i<linkNumber;i++){ var aElement = linkElement[i]; -> var hrefValue = aElement.getAttribute("href"); The error message says, aElement is null. I think the problem is that Thunderbird can't read <a> elements on this special message window. In the "normal" view, my add on works just fine, the same with linux and windows.

All Replies (1)

more options

> my add on does not work in it. If you are an addon developer you probably want to post in mozilla.dev.apps.thunderbird newsgroup