<?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>251588</bug_id>
          
          <creation_ts>2023-02-02 08:01:36 -0800</creation_ts>
          <short_desc>[GTK] Don&apos;t enable favicon database by default</short_desc>
          <delta_ts>2023-02-06 03:49:01 -0800</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>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>210100</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Carlos Garcia Campos">cgarcia</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1930472</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-02-02 08:01:36 -0800</bug_when>
    <thetext>I asked Carlos Garcia to enable WebKitFaviconDatabase by default in the new API, since web browsers want favicons. But I think this was a mistake, because WebKitFaviconDatabase does not do anything useful unless your application has code to use it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930845</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-02-03 06:12:03 -0800</bug_when>
    <thetext>I&apos;ve thought about this, because favicon database now can be null, which maybe it&apos;s not the best approach either. You might want to disable favicon loads, but still get favicons from the database, for anything in the browser UI (bookmarks, etc.). So, I can think of different options here:

1.- Leave things as they are but simply change the default value to disabled.
2.- Disable favicon loads per WebView, for example using a new setting, but favicon database can still be used to query favicons.
3.- Disable favicon loads per request, by adding a new signal that would expose IconLoadingClient::getLoadDecisionForIcon(). In this case, favicons database can always be used too. The signal is similar to accept-certificate, where you are supposed to just return TRUE or FALSE. I think we can keep it synchronous too.

In case of 2 and 3 if the database is not used by the app and the setting disabled or signal unhandled or returning FALSE, the database is not even created.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930853</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-02-03 06:46:57 -0800</bug_when>
    <thetext>I&apos;d prefer 1.

&gt; You might want to disable favicon loads, but still get favicons from the database, for anything in the browser UI (bookmarks, etc.).

Why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931087</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-02-03 23:07:46 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #2)
&gt; I&apos;d prefer 1.
&gt; 
&gt; &gt; You might want to disable favicon loads, but still get favicons from the database, for anything in the browser UI (bookmarks, etc.).
&gt; 
&gt; Why?

For anything in the browser UI like bookmarks, history, etc. But I guess in the end apps either want favicons for everything or nothing, so maybe 1. is indeed the simplest solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931321</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-02-06 01:53:44 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9678</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931339</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-06 03:48:58 -0800</bug_when>
    <thetext>Committed 259888@main (ac3878ed7421): &lt;https://commits.webkit.org/259888@main&gt;

Reviewed commits have been landed. Closing PR #9678 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>