Hello.
Since TB options are now open in a tab, is there an event/observer notification that can be tracked to be notified when options opened and more specifically when a specific tab in the options is opened?
Thank you.
TB68: detect options open?
5 posts
• Page 1 of 1
Hello.
Since TB options are now open in a tab, is there an event/observer notification that can be tracked to be notified when options opened and more specifically when a specific tab in the options is opened? Thank you. Try using a pref observer. The value of the mail.preferences.advanced.selectedTabIndex pref changes when the selected tab changes in the advanced pane in the options tab.
Maybe use the registerTabMonitor method to listen when the options tab opens. (see tabmail.xml) I never tried the new tabs api. Thunderbird WebExtension APIs http://thunderbird-webextensions.readthedocs.io/en/68/index.html Annoying that there is no source code available for Thunderbird 68 online. Source http://dxr.mozilla.org/ http://searchfox.org/ Bugs for comm-esr68 http://bugzilla.mozilla.org/show_bug.cgi?id=1574953 http://bugzilla.mozilla.org/show_bug.cgi?id=1577406 Last edited by morat on October 20th, 2019, 7:28 am, edited 1 time in total.
Thanks.
So far I have this code, it works well, when options tab is already opened and just switched to from another tab. However upon opening options or if TB just started with options tab already opened, my code fail, because tab's window object doesn't fire "load" event
P.S. This is bootstrap extension, not webextension I can't get the DOMContentLoaded or load listener to work. I got the paneSelected listener to work.
These are the preferences that change values when selecting a tab within a selected pane in the options tab. * mail.preferences.display.selectedTabIndex * mail.preferences.compose.selectedTabIndex i.e. pref for composition pane * mail.preferences.chat.selectedTabIndex * mail.preferences.security.selectedTabIndex * mail.preferences.applications.selectedTabIndex i.e. pref for attachments pane * mail.preferences.advanced.selectedTabIndex Great! Thank you. This worked.
5 posts
• Page 1 of 1
Return to Extension Development Who is onlineUsers browsing this forum: No registered users and 1 guest |
![]() |