<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>190335</bug_id>
          
          <creation_ts>2018-10-07 04:46:34 -0700</creation_ts>
          <short_desc>[GTK] WebKitGTK should always propose the best favicon</short_desc>
          <delta_ts>2026-04-07 04:26:35 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>301086</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=301086</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cédric Bellegarde">cedric.bellegarde</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1466925</commentid>
    <comment_count>0</comment_count>
    <who name="Cédric Bellegarde">cedric.bellegarde</who>
    <bug_when>2018-10-07 04:46:34 -0700</bug_when>
    <thetext>Currently, it&apos;s impossible to get a clean favicon:

- WebView fires &quot;notify::favicon&quot; many times in a page with all favicon sizes: sometimes it starts with a small, sometimes it ends with a small...
- FaviconDatabase stores random sizes depending on same page reload.

Happens with:
https://www.archlinux.org/

I think WebKitGTK should first compute all available favicons and:
- Fires only one &quot;notify::favicon&quot; with the best one
- Stores in DB only the best one</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1476848</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2018-11-09 03:56:37 -0800</bug_when>
    <thetext>I see two problems here. One is deciding which is the the best one, and the other is that we don&apos;t know how how many icons the web site is going to provide. So, we could check on every icon received if it&apos;s better than the previous one and replace it, for example. We would still emit multiple notify events, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1476877</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-11-09 06:55:57 -0800</bug_when>
    <thetext>IMO we should freeze notify when processing favicons and only unthaw once we&apos;re done. There&apos;s no need for client applications to be exposed to multiple favicon changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1476908</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2018-11-09 08:11:59 -0800</bug_when>
    <thetext>Again, we don&apos;t know when we are done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1477013</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-11-09 11:33:16 -0800</bug_when>
    <thetext>Isn&apos;t it done at load-finished time?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1477497</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2018-11-12 00:36:39 -0800</bug_when>
    <thetext>I don&apos;t think so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191995</commentid>
    <comment_count>6</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-03-20 03:02:50 -0700</bug_when>
    <thetext>I think this will be fixed by bug #301086 where I am adding new API that will expose all the page icons, so then programs using the API can go through the list and choose the icon(s) which are better suited for their needs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2197594</commentid>
    <comment_count>7</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-04-07 04:26:35 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #6)
&gt; I think this will be fixed by bug #301086 where I am adding new API that
&gt; will expose all the page icons, so then programs using the API can go
&gt; through the list and choose the icon(s) which are better suited for their
&gt; needs.

The new API from bug #301086 is now in “main” and it allows inspecting
all the loaded icons for a page, which means applications can now more
feasibly pick whichever icon is better for their needs.

I think we can close this =)

*** This bug has been marked as a duplicate of bug 301086 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>