Open Bug 854956 (hidpi-favicon-ui) Opened 8 years ago Updated 10 months ago

[meta] Use higher-res favicons in the Firefox UI

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

People

(Reporter: jfkthame, Unassigned)

References

(Depends on 7 open bugs, Blocks 4 open bugs)

Details

(Keywords: meta)

Attachments

(3 files)

In bug 828508, we're adding support for higher-resolution favicons in the tabbrowser UI when running on hi-dpi display (Retina Mac, or Windows with >96dpi resolution setting.) This applies to the tab titles, and to the All Tabs menu. This is done using the new -moz-resolution media fragment identifier from bug 419588.

However, the favicons shown in bookmarks and in awesomebar results are still low-res. It's not immediately obvious to me where this should be fixed, but I'm filing this as a Places bug as these elements are all based on the Places data, AIUI.
bug 492172 and bug 768703 and bug 391589 and probably others.
The short answer is that when we store icons we store them in the DB, and they get scaled down to 16x16 for size concerns. We are not against changing this though.
Also a bunch of style hardcodes 16px around, so that will need to change as well.
This screenshot shows the contrast between hidpi favicons (in the tab titles) and lodpi ones (in the bookmarks) on a Retina Mac, following the landing of bug 828508.

With expanding hidpi support (this will impact increasing numbers of Windows users, as well as Retina Mac users), I think it's becoming pretty important that we address this. The blurry bookmark icons are one of the most glaring problems on hidpi Windows systems.
Bug 492172 certainly looks relevant here.

Note that bug 768703 ("Use 32x32 favicons in location bar results") is a different issue: it's about redesigning the UI to present bigger favicons, whereas the issue here is about using larger images (i.e. with more pixels) in order to display a higher-res image at the -current- size.
I agree, we should give more priority to designing a good storage for larger icons in Places.
I think this depends on bug 798223, but I'm not certain.

Setting PREFICONSIZE to 32 in nsICODecoder enables higher-res favicons in the  bookmarks button menu and awesomebar results, but not in the menu bar bookmarks menu.
Depends on: 798223
(In reply to Frank Yan (:fryn) from comment #5)
> Setting PREFICONSIZE to 32 in nsICODecoder enables higher-res favicons in
> the  bookmarks button menu and awesomebar results, but not in the menu bar
> bookmarks menu.

Really? That doesn't seem to work for me in a local build - I'm still only seeing lo-dpi favicons in those places.
No longer depends on: 798223
Duplicate of this bug: 950322
Whiteboard: [triage]
adding some more dependecies on similar reports that may contain useful information. Most of them could be fixed by adding support for high res favicons to the favicon service.
Depends on: 768703, 798223, 907471, 391589, 951396
Whiteboard: [triage]
Whiteboard: p=0
Whiteboard: p=0 → [tracking]
No longer blocks: fxdesktopbacklog
This bug has meandered a bit, but I'm going to attach it to bug 1016548 to track completing our work for getting hidpi favicons into Firefox UI.

Previous work has already fixed favicons as shown in tabs. By my count, the remaining areas where we commonly need hidpi favicons are:

    * Awesomebar results
    * Places Library
    * Bookmarks toolbar
    * Back/forward navbutton dropdown
    * Sidebars (bookmarks/history)
    * Native menu menuitem favicons (Bookmarks/History from menubar)
    * Bookmarks/History subviews (from Menu Panel or in toolbar)
    * about:sessionrestore
    * Panorama (see also bug 1022005)

I've probably missed some places. :)

I suspect the first step is going to be to fix Places / the favicon service to do whatever we need (ie, fix the backend), and then we can go through and make sure the UI is doing the right thing to use it.
Blocks: 1016548
Keywords: meta
Summary: use higher-res favicons in bookmarks, awesomebar results, etc → [meta] Use higher-res favicons in the Firefox UI
Whiteboard: [tracking]
Component: Places → General
Product: Toolkit → Firefox
Depends on: 876700
Depends on: 1041845
Depends on: 1052174
Is anyone still working on this bug and its dependants? Can we push this any faster? 

Retina MacBook Pro computers were released over two years ago, plus many Windows machines now on the market with HiDpi monitors. Would be good to get this out the door with Yosemite UI improvements (bug 1040250)
Flags: firefox-backlog?
We don't track meta bugs in the backlog generally, but the dependent bugs may merit tracking.
Flags: firefox-backlog? → firefox-backlog-
Alias: hidpi-favicon-ui
Depends on: 1249808
Now there are ten instead of six entries visible in the location bar by default without scrolling (bug 1195054). That means the situation is even more worse than before for HiDPI users. Could this feature request get more priority, please? The location bar is one of the most visible UI elements of the browser, it looks really bad and the number of users with HiDPI displays is more and more increasing.
Blocks: 967100
Duplicate of this bug: 1312378
I don't think it is fully solved for tabs either, I'm afraid. It seems to only work for .ico files, not more standardised formats like .png.
Yes, there are 2 problems, one side the backend is not storing icons properly, the other side the frontend uses the first/last (don't recall atm) icon defined by the page, rather than the "best" one. the issues are sort of related, but both should be fixed.
(In reply to Marco Bonardo [::mak] from comment #24)
> Yes, there are 2 problems, one side the backend is not storing icons
> properly, the other side the frontend uses the first/last (don't recall atm)
> icon defined by the page, rather than the "best" one. the issues are sort of
> related, but both should be fixed.

That's why I got 2 different favicons for YouTube in the location bar e.g.?
http://i.imgur.com/pUrj2tP.jpg
(In reply to Loic from comment #25)
> That's why I got 2 different favicons for YouTube in the location bar e.g.?
> http://i.imgur.com/pUrj2tP.jpg

that's because one url has an older icon, visiting it may update the icon to a newer version, or not, depending on how the 2 pages expose the icon in their html code.
Btw, it's surely related to the above bugs.
YouTube for some reason has one icon for the site (favicon.ico) and serves a different icon on every page of the site.

Something has happened in this area and I'm now getting randomly different sizes for the icon on the tab as I reload the page.

Should I file a new bug or should we consider it covered by the overhaul needed for this bug?

(In reply to Pierre Ossman from comment #28)

Something has happened in this area and I'm now getting randomly different sizes for the icon on the tab as I reload the page.

Should I file a new bug or should we consider it covered by the overhaul needed for this bug?

Please file a new bug and link it to this bug # in the new bug's "Blocks" field. It's easier to close a new bug report as duplicate than to discuss and fix two bugs in one bug report. :) Linking the new bug #s will ensure the right people get CC'd on the new bug email.

Depends on: 1574851
Blocks: 120352
Depends on: 751712
You need to log in before you can comment on or make changes to this bug.