Investigate whether tab favicon principals are dead code
Categories
(Firefox :: Tabbed Browser, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | fixed |
People
(Reporter: dmcintosh, Assigned: emilio)
Details
Attachments
(1 file)
Tabs can have a iconloadingprincipal attribute, which filters down into the icon image's triggeringprincipal attribute. However, it's not clear that iconloadingprincipal is ever set—it looks like since bug 1453751 that data URIs are always used, so there isn't much point in keeping it.
If https://searchfox.org/firefox-main/search?q=gBrowser.setIcon is comprehensive, only SessionStore can ever set it to non-null. If that's true, SessionStore should itself never set it to non-null unless the user has a profile that hasn't opened since bug 1472476, so there's no point keeping it at all. Alternatively, there is some reason, in which case it should probably be documented somewhere.
| Assignee | ||
Comment 1•9 months ago
|
||
This seems to come from bug 1472476. I think seven years later we can
probably stop restoring non-local favicons and simplify the code a bit.
Updated•9 months ago
|
Comment 3•9 months ago
|
||
| bugherder | ||
Updated•8 months ago
|
Description
•