Add a favicon for the Account Manager tab
Categories
(Thunderbird :: Account Manager, task)
Tracking
(Not tracked)
People
(Reporter: Paenglab, Assigned: Paenglab)
Details
Attachments
(1 file, 2 obsolete files)
|
3.07 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
With the Account Manager in tab we should add a favicon to better differentiate to other tabs and give a better recognition of the tab.
I tried to add to the accountManager.xhtml a <link rel="shortcut icon" href="path/to/icon"/> but this didn't work. It seems the content tab don't support this.
Khushil, is it somehow possible to give the AM tab a attribute like type="AccountManager" like we have for other tabs? Then we could assign a icon through CSS .
Comment 1•5 years ago
•
|
||
We can search for a tab here just as below: https://searchfox.org/comm-central/source/mailnews/base/prefs/content/accountUtils.js#320
for (let tabInfo of tabmail.tabInfo) {
let tab = tabmail.getTabForBrowser(tabInfo.browser);
if (tab && tab.urlbar && tab.urlbar.textContent == "about:accountsettings") {
tab.setAttriubte("type", "AccountManager");
break;
}
}
| Assignee | ||
Comment 2•5 years ago
|
||
Thanks. I needed to change the if () to
if (
tab &&
tab.urlbar &&
tab.urlbar.textContent == "about:accountsettings"
)
But now I get tab.setAttribute is not a function.
Please can you help here?
Comment 3•5 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #2)
But now I get
tab.setAttribute is not a function.Please can you help here?
It will be: tab.tabNode.setAttribute("type", "AccountManager");
Comment 4•5 years ago
|
||
Any updates on this?
| Assignee | ||
Comment 5•5 years ago
|
||
(In reply to Khushil Mistry [:khushil324] from comment #4)
Any updates on this?
Yes, this one works when opening the AM. But when starting TB with with a open AM tab it doesn't get the icon.
Any hints where the code should be placed to work with am already opened AM tab on startup? Or do we say it's unlikely that this tab stays open for long time?
Comment 6•5 years ago
|
||
(Sorry, I don't have anything to add atm.)
Updated•5 years ago
|
Comment 7•5 years ago
|
||
I checked this. It is working. For the issue during the restoration of the tabs, I have added an if-condition in specialTabs.js.
if (aPersistedState.tabURI == "about:accountsettings") {
tab.tabNode.setAttribute("type", "accountManager");
}
| Assignee | ||
Comment 8•5 years ago
|
||
| Assignee | ||
Comment 9•5 years ago
|
||
Added Khushil to the author field.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/08098cce2d2c
Add a favicon for the Account Manager tab. r=mkmelin
Comment 11•5 years ago
|
||
Description
•