<?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>258865</bug_id>
          
          <creation_ts>2023-07-04 21:07:45 -0700</creation_ts>
          <short_desc>Attachment ref-tests should wait for the icon to be present</short_desc>
          <delta_ts>2023-07-18 15:53:02 -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>HTML Editing</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Gerald Squelart">g_squelart</reporter>
          <assigned_to name="Gerald Squelart">g_squelart</assigned_to>
          <cc>rackler</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1965050</commentid>
    <comment_count>0</comment_count>
    <who name="Gerald Squelart">g_squelart</who>
    <bug_when>2023-07-04 21:07:45 -0700</bug_when>
    <thetext>Attachment ref-tests don&apos;t add any delay before a snapshot is taken. However, attachments request their icon asynchronously during their first paint, meaning that if the snapshot is taken after this first paint it will probably not have the icon!
So I&apos;m suspecting that ref-tests don&apos;t actually compare icons, and that intermittent failures could be due to the odd case when the icon is available unexpectedly fast.
To fix this, tests should delay the snapshot until all attachments have received their icon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965051</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-07-04 21:07:57 -0700</bug_when>
    <thetext>&lt;rdar://problem/111764330&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965052</commentid>
    <comment_count>2</comment_count>
    <who name="Gerald Squelart">g_squelart</who>
    <bug_when>2023-07-04 21:14:04 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/15554</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1966297</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2023-07-11 16:17:28 -0700</bug_when>
    <thetext>*** Bug 259127 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1966413</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2023-07-12 10:47:08 -0700</bug_when>
    <thetext>REGRESSION (265615@main): [ iOS macOS wk2 ] Four fast/attachment/cocoa/wide-attachment tests are flaky image failures

After landing 265615@main, some wide-attachment-* tests became flaky because of the way the icon is asynchronously fetched and then loaded into an img.

Description:
fast/attachment/cocoa/wide-attachment-folder-icon.html
fast/attachment/cocoa/wide-attachment-icon-from-file-extension.html
fast/attachment/mac/wide-attachment-title-with-rtl.html
fast/attachment/mac/wide-attachment-type-attribute.html

History:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=fast%2Fattachment%2Fcocoa%2Fwide-attachment-folder-icon.html&amp;test=fast%2Fattachment%2Fcocoa%2Fwide-attachment-icon-from-file-extension.html&amp;test=fast%2Fattachment%2Fmac%2Fwide-attachment-title-with-rtl.html&amp;test=fast%2Fattachment%2Fmac%2Fwide-attachment-type-attribute.html&amp;platform=mac

Since the resolution is being worked on in this bug, I have marked these tests as flaky image failures here while this issue is investigated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1966415</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-07-12 10:52:27 -0700</bug_when>
    <thetext>Test gardening commit 265994@main (b8b69392a0cc): &lt;https://commits.webkit.org/265994@main&gt;

Reviewed commits have been landed. Closing PR #15786 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1966428</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-07-12 12:14:24 -0700</bug_when>
    <thetext>Test gardening commit 265870.40@safari-7616-branch (a5090f836a89): &lt;https://commits.webkit.org/265870.40@safari-7616-branch&gt;

Reviewed commits have been landed. Closing PR #692 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967262</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-07-18 15:53:01 -0700</bug_when>
    <thetext>Committed 266144@main (6e502e9d0156): &lt;https://commits.webkit.org/266144@main&gt;

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

    </bug>

</bugzilla>