<?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>14287</bug_id>
          
          <creation_ts>2007-06-21 11:44:12 -0700</creation_ts>
          <short_desc>Don&apos;t add a null icon to the icon cache for every page without a favicon</short_desc>
          <delta_ts>2007-06-21 13:20:55 -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>WebCore Misc.</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Adam Treat">manyoso</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>staikos</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6876</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Treat">manyoso</who>
    <bug_when>2007-06-21 11:44:12 -0700</bug_when>
    <thetext>Currently, the iconloader adds an icon to the cache whenever it hits an error page and it also adds a null icon to the cache for every page that doesn&apos;t have a favicon.  This makes sure to add an icon to the cache only when actual data exists.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6875</commentid>
    <comment_count>1</comment_count>
      <attachid>15165</attachid>
    <who name="Adam Treat">manyoso</who>
    <bug_when>2007-06-21 11:45:03 -0700</bug_when>
    <thetext>Created attachment 15165
Fix for this bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6874</commentid>
    <comment_count>2</comment_count>
      <attachid>15165</attachid>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2007-06-21 11:55:18 -0700</bug_when>
    <thetext>Comment on attachment 15165
Fix for this bug

Ok, this looks good, but i strongly suspect this will cause a perf regression.  

I suspect we cache null favicons to prevent us repeatedly trying to fetch a favicon from servers that don&apos;t have one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6873</commentid>
    <comment_count>3</comment_count>
      <attachid>15165</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2007-06-21 12:00:18 -0700</bug_when>
    <thetext>Comment on attachment 15165
Fix for this bug

We track these icons to avoid redundant network requests, which hurt performance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6857</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-06-21 13:20:55 -0700</bug_when>
    <thetext>This behavior is intentional.  We track pages that don&apos;t have icons to prevent pinging the page for its icon every time.  There&apos;s expiration-date behavior here so we would re-request the icon once a day or once a week (I forget which), and we also re-request the icon if the user manually reloads the page.

Closing as invalid...</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>15165</attachid>
            <date>2007-06-21 11:45:03 -0700</date>
            <delta_ts>2007-06-21 12:00:18 -0700</delta_ts>
            <desc>Fix for this bug</desc>
            <filename>fix-non-existent-favicon.patch</filename>
            <type>text/plain</type>
            <size>1422</size>
            <attacher name="Adam Treat">manyoso</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAyMzcxNykKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLD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9yZXNvdXJjZUxvYWRlcik7Ci0gICAgaWYgKCFpY29uVVJMLmlzRW1w
dHkoKSAmJiBtX3Jlc291cmNlTG9hZGVyKSB7CisgICAgaWYgKCFpY29uVVJMLmlzRW1wdHkoKSAm
JiBtX3Jlc291cmNlTG9hZGVyICYmIG1fcmVzb3VyY2VMb2FkZXItPnJlc291cmNlRGF0YSgpKSB7
CiAgICAgICAgIGljb25EYXRhYmFzZSgpLT5zZXRJY29uRGF0YUZvckljb25VUkwobV9yZXNvdXJj
ZUxvYWRlci0+cmVzb3VyY2VEYXRhKCksIGljb25VUkwudXJsKCkpOwogICAgICAgICBMT0coSWNv
bkRhdGFiYXNlLCAiSWNvbkxvYWRlcjo6ZmluaXNoTG9hZGluZygpIC0gQ29tbWl0dGluZyBpY29u
VVJMICVzIHRvIGRhdGFiYXNlIiwgaWNvblVSTC51cmwoKS5hc2NpaSgpKTsKICAgICAgICAgbV9m
cmFtZS0+bG9hZGVyKCktPmNvbW1pdEljb25VUkxUb0ljb25EYXRhYmFzZShpY29uVVJMKTsK
</data>
<flag name="review"
          id="6252"
          type_id="1"
          status="-"
          setter="ggaren"
    />
          </attachment>
      

    </bug>

</bugzilla>