document.getElementById(toolbarid) fails for TB v68

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

document.getElementById(toolbarid) fails for TB v68

bharath kumar
Hello,

We are updating our extension form legacy to TB v68.

However, In TB v68, document.getElementById(toolbarid) returns null. toolbar is mail-bar3. The reason I need this is that I need to add a few buttons to the toolbar.

This works perfectly with versions lesser than 68.

Could anyone kindly help?

Thanks,
Regards,
Bharath
_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: document.getElementById(toolbarid) fails for TB v68

Jörg Knobloch
On 18 Oct 2019 15:15, bharath kumar wrote:
> However, In TB v68, document.getElementById(toolbarid) returns null. toolbar is mail-bar3. The reason I need this is that I need to add a few buttons to the toolbar.
>
> This works perfectly with versions lesser than 68.

Hmm, in such cases it's useful to search the TB 60 and current codebase:

https://dxr.mozilla.org/comm-esr60/search?q=mail-bar3&redirect=false

https://searchfox.org/comm-central/search?q=mail-bar3&case=false&regexp=false&path=

You can see that mail-bar3 is still there (although some customisable
toolbars have been removed in
https://bugzilla.mozilla.org/show_bug.cgi?id=1535265#c28).

Sadly that doesn't answer your question why your add-on doesn't work any
more :-(

Jörg.

_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird