After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 696726 - Be way smarter about picking web app icons
Be way smarter about picking web app icons
Status: RESOLVED DUPLICATE of bug 767257
Product: epiphany
Classification: Core
Component: Web Applications
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 702857 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-03-27 18:27 UTC by William Jon McCann
Modified: 2016-11-11 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2013-03-27 18:27:04 UTC
forecast.io has the following:

  <link rel="apple-touch-icon-precomposed" href="images/icons/54.png">
  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/icons/72.png">
  <link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/icons/114.png">
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/icons/144.png">


We were only picking 54.png.
Comment 1 Claudio Saavedra 2013-03-27 18:44:54 UTC
As far as I can see the code is fetching only the first image in the list.
Comment 2 Claudio Saavedra 2013-03-27 19:01:29 UTC
Seems that we don't have in the dom bindings access to the sizes attribute. For whatever reason this property is made JS only in WK:

#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
    [Custom] attribute DOMSettableTokenList sizes;
#endif
Comment 3 William Jon McCann 2013-12-14 13:38:01 UTC
From https://bugs.webkit.org/show_bug.cgi?id=37674#c30
"This uses a custom binding which doesn't seem needed. Please file a new bug to not use custom bindings and/or add GTK custom bindings."

I don't see any way to properly (other than sniffing the href) to get the best icon if we don't have access to this attribute.
Comment 4 William Jon McCann 2013-12-16 13:28:24 UTC
Ok filed https://bugs.webkit.org/show_bug.cgi?id=125775
Comment 5 Carlos Garcia Campos 2014-12-11 15:54:10 UTC
(In reply to comment #4)
> Ok filed https://bugs.webkit.org/show_bug.cgi?id=125775

Fixed now
Comment 6 Michael Catanzaro 2016-01-26 00:33:01 UTC
*** Bug 702857 has been marked as a duplicate of this bug. ***
Comment 7 Michael Catanzaro 2016-01-26 00:35:23 UTC
I added some FIXMEs in the code (ephy-web-dom-utils.c) with links to some articles about how to go about picking good icons. We're making a token effort to look up Windows 8 and Apple Touch icons, but missing most.

The file size could be in the name of the icon, or the icons could just be present at the root of the site and not in the DOM at all (we should check, but we don't).
Comment 8 Daniel Aleksandersen 2016-06-01 18:02:27 UTC
Here is a collection of icon discovery mechanisms. The list is sorted by recognized standards first … :

* <link rel="icon" sizes="any" href="icon.svg">
* <link rel="icon" sizes="256x256 128x128 32x32" href="icon.ico">
* <link rel="icon" sizes="256x256" href="icon.png">

… followed by defacto standards:

* Request /apple-touch-icon.png and see if you get an image response†
* <link rel="apple-touch-icon" href="/apple-touch-icon.png"> 
* Request /browserconfig.xml and find a list of tileImages there‡
* <meta name="msapplication-tileImage" conent="/msapplication.png">


† Works as you would with /favicon.ico. There are many more websites using this than including the link element in HTML; including Apple.com. This is method is the current recommendation by Apple.
‡ Current Microsoft recommendation.

Both iOS and Windows 8/10 only does the extra icon-discovery requests when a user chooses to bookmark or pin a website to their home/start screens.
Comment 9 Michael Catanzaro 2016-06-05 15:17:31 UTC
Hey Daniel, can I mark this bug as a duplicate of bug #767257? Is there anything else we should do here that you didn't already take care of in that bug? I know we still have a couple FIXMEs in the code, but they seem relatively minor now and I don't think we need an open bug to track FIXMEs.
Comment 10 Daniel Aleksandersen 2016-11-11 15:45:29 UTC
 Michael Catanzaro, yes. Mark it a duplicate.
Comment 11 Michael Catanzaro 2016-11-11 16:53:29 UTC

*** This bug has been marked as a duplicate of bug 767257 ***