<?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>236616</bug_id>
          
          <creation_ts>2022-02-14 15:43:06 -0800</creation_ts>
          <short_desc>Data URI favicon doesn&apos;t seem to work</short_desc>
          <delta_ts>2025-06-18 00:47:21 -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>Images</component>
          <version>Safari 15</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 12</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Case">eric.case</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>adam_marcus</cc>
    
    <cc>beidson</cc>
    
    <cc>eric.case</cc>
    
    <cc>jacob</cc>
    
    <cc>karlcow</cc>
    
    <cc>mjs</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1841443</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Case">eric.case</who>
    <bug_when>2022-02-14 15:43:06 -0800</bug_when>
    <thetext>I&apos;ve documented my attempts to get this working in this repo: https://github.com/case/safari-favicons-base64

I tried the suggestion in this Stack Overflow post: https://stackoverflow.com/a/5199989/890466 -- which suggests that this worked in Mac Safari back in 2011. Perhaps something related has changed or broken since then?

This snippet works fine in latest (as of filing this bug report) Mac Chrome and Firefox:

&lt;link rel=&quot;icon&quot; href=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElNRQflAx4QGA4EvmzDAAAA30lEQVRIx2NgGAWMCKa8JKM4A8Ovt88ekyLCDGOoyDBJMjExMbFy8zF8/EKsCAMDE8yAPyIwFps48SJIBpAL4AZwvoSx/r0lXgQpDN58EWL5x/7/H+vL20+JFxluQKVe5b3Ke5V+0kQQCamfoYKBg4GDwUKI8d0BYkWQkrLKewYBKPPDHUFiRaiZkBgmwhj/F5IgggyUJ6i8V3mv0kCayDAAeEsklXqGAgYGhgV3CnGrwVciYSYk0kokhgS44/JxqqFpiYSZbEgskd4dEBRk1GD4wdB5twKXmlHAwMDAAACdEZau06NQUwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wNy0xNVQxNTo1Mzo0MCswMDowMCVXsDIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDctMTVUMTU6NTM6NDArMDA6MDBUCgiOAAAAAElFTkSuQmCC&quot; /&gt;

But for some reason I haven&apos;t been able to get it working in Safari.

I also have a related Twitter thread about this with @othermaciej here: https://twitter.com/othermaciej/status/1493336261901238272?s=21</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1841461</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-14 16:05:52 -0800</bug_when>
    <thetext>&lt;rdar://problem/88933938&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1844092</commentid>
    <comment_count>2</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2022-02-20 17:39:21 -0800</bug_when>
    <thetext>On Twitter it was suggested this may be a Safari 15.3 regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907869</commentid>
    <comment_count>3</comment_count>
    <who name="">adam_marcus</who>
    <bug_when>2022-10-24 13:33:42 -0700</bug_when>
    <thetext>Any updates on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2057458</commentid>
    <comment_count>4</comment_count>
    <who name="Jacob Bandes-Storch">jacob</who>
    <bug_when>2024-09-03 22:03:05 -0700</bug_when>
    <thetext>Hi all, is this supposed to work now? I&apos;m still seeing it not working on macOS 14.6.1 / Safari 17.6, but not sure if I&apos;m doing something wrong...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2057459</commentid>
    <comment_count>5</comment_count>
    <who name="Jacob Bandes-Storch">jacob</who>
    <bug_when>2024-09-03 22:03:28 -0700</bug_when>
    <thetext>(Note: I&apos;m trying to use a SVG image in a data: uri)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>