Closed Bug 1985156 Opened 9 months ago Closed 9 months ago

Investigate whether tab favicon principals are dead code

Categories

(Firefox :: Tabbed Browser, task)

task

Tracking

()

RESOLVED FIXED
144 Branch
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.

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.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6a0e2c7fe6e3 https://hg.mozilla.org/integration/autoland/rev/b1e18465bf75 Remove icon loading principal code. r=dao,sessionstore-reviewers,tabbrowser-reviewers,sthompson
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
QA Whiteboard: [qa-triage-done-c145/b144]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: