<?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>244103</bug_id>
          
          <creation_ts>2022-08-18 14:26:27 -0700</creation_ts>
          <short_desc>[Cocoa] Some AVIF images can&apos;t be rendered because their containers formats are HEIF</short_desc>
          <delta_ts>2024-12-29 13:56:02 -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>Images</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=241904</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=245097</see_also>
          <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="Myles C. Maxfield">mmaxfield</reporter>
          <assigned_to name="Said Abou-Hallawa">sabouhallawa</assigned_to>
          <cc>oliver</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>tetsuharu.ohzeki</cc>
    
    <cc>thierry.koblentz</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1892301</commentid>
    <comment_count>0</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2022-08-18 14:26:27 -0700</bug_when>
    <thetext>From https://bugs.webkit.org/show_bug.cgi?id=241904#c4

&gt; I find some avif image in base64 format still can&apos;t be render in Safari 16.Here is the image src link https://github.com/kamalendugarai/webp-avif-browsers-support-detection/blob/master/src/index.js#L11
&gt; Browser version 18614.1.19.1.5
&gt; This happened in both Mac OS 13 and iOS 16.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892303</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-18 14:26:59 -0700</bug_when>
    <thetext>&lt;rdar://problem/98850829&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892499</commentid>
    <comment_count>2</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2022-08-19 14:30:08 -0700</bug_when>
    <thetext>Looks like this is a bug in a system framework. Tracking in &lt;rdar://problem/98850829&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1893763</commentid>
    <comment_count>3</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2022-08-25 11:21:12 -0700</bug_when>
    <thetext>*** Bug 244324 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899100</commentid>
    <comment_count>4</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2022-09-16 15:28:30 -0700</bug_when>
    <thetext>I think we can fix it (for now) by looking at the ftyp box of the HEIF/AVIF files and check the major_brand and the compatible_brands in this box.

HEIF/AVIF files start with an ftyp box

aligned(8) class GeneralTypeBox(code) extends Box(code) {
    unsigned int(32)    major_brand;
    unsigned int(32)    minor_version;
    unsigned int(32)    compatible_brands[];    // to end of the box
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899108</commentid>
    <comment_count>5</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2022-09-16 15:46:11 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/4434</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899238</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-17 13:02:07 -0700</bug_when>
    <thetext>Committed 254591@main (08227904ddb6): &lt;https://commits.webkit.org/254591@main&gt;

Reviewed commits have been landed. Closing PR #4434 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903857</commentid>
    <comment_count>7</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2022-10-06 13:37:47 -0700</bug_when>
    <thetext>*** Bug 245097 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084128</commentid>
    <comment_count>8</comment_count>
    <who name="Thierry">thierry.koblentz</who>
    <bug_when>2024-12-27 19:02:18 -0800</bug_when>
    <thetext>I&apos;m looking at https://tabpanelwidget.com in Safari Version 17.6 (19618.3.11.11.5) and all these AVIF images show blank:

https://tabpanelwidget.com/hero-home-page.1afc539c.avif

https://tabpanelwidget.com/hero-home-page@2x.148d84a6.avif

https://tabpanelwidget.com/hero-home-page@3x.1920d4b3.avif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084201</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-12-29 13:12:03 -0800</bug_when>
    <thetext>Thank you for bringing this up. This is a different issue, as these images are not HEIF in disguise. Please file a new bug report. Since these issues are typically in underlying system frameworks, it&apos;s best to file it at https://feedbackassistant.apple.com for Apple engineers to investigate, and to post the FB number here for tracking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084203</commentid>
    <comment_count>10</comment_count>
    <who name="Thierry">thierry.koblentz</who>
    <bug_when>2024-12-29 13:56:02 -0800</bug_when>
    <thetext>FB Number: 16194197

https://feedbackassistant.apple.com/feedback/16194197</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>