<?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>315119</bug_id>
          
          <creation_ts>2026-05-19 13:44:44 -0700</creation_ts>
          <short_desc>REGRESSION(313199@main?): [iOS]: 2 tests in TestWebKitAPI.WKAttachmentTestsIOS are flaky failures</short_desc>
          <delta_ts>2026-05-19 14:02: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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Marta Darbinyan">darbinyan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2212170</commentid>
    <comment_count>0</comment_count>
    <who name="Marta Darbinyan">darbinyan</who>
    <bug_when>2026-05-19 13:44:44 -0700</bug_when>
    <thetext>Observing failing tests in API-Tests-iOS-Simulator-EWS test runs. 

Failed tests:
TestWebKitAPI.WKAttachmentTestsIOS.InsertPastedFilesAsAttachments
TestWebKitAPI.WKAttachmentTestsIOS.InsertPastedContactAsAttachment


Error:
07:07:48.517 3617     TestWebKitAPI.WKAttachmentTestsIOS.InsertPastedFilesAsAttachments
07:07:48.517 3617         2026-05-19 06:35:04.992 com.apple.WebKit.GPU[34546:1015257] CoreText note: Client requested name &quot;.SFUI-Regular_wdth_opsz110000_GRAD_wght&quot;, it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[UIFont systemFontOfSize:].
07:07:48.517 3617         2026-05-19 06:35:04.992 com.apple.WebKit.GPU[34546:1015257] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
07:07:48.517 3617         2026-05-19 06:35:05.172 TestWebKitAPI[34536:1015152] Encountered error: Error Domain=WKErrorDomain Code=4 &quot;A JavaScript exception occurred&quot; UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: null is not an object (evaluating &apos;document.querySelector(&apos;attachment[type^=application]&apos;).getAttribute&apos;), WKJavaScriptExceptionColumnNumber=56, WKJavaScriptExceptionSourceURL=file:///Volumes/Data/worker/API-Tests-iOS-Simulator-EWS/build/WebKitBuild/Release-iphonesimulator/TestWebKitAPIResources.bundle/, NSLocalizedDescription=A JavaScript exception occurred} while evaluating script: document.querySelector(&apos;attachment[type^=application]&apos;).getAttribute(&apos;title&apos;)
07:07:48.517 3617         2026-05-19 06:35:05.173 TestWebKitAPI[34536:1015152] Expected data: &lt;10820 bytes&gt; but observed: &lt;38 bytes&gt; for &lt;_WKAttachment 0x60000210fe80 id=&apos;09edcb2c-6663-46f1-ad78-aba9cdcc3833&apos;&gt;
07:07:48.517 3617         2026-05-19 06:35:05.173 TestWebKitAPI[34536:1015152] Observed error: (null) while reading data for &lt;_WKAttachment 0x60000210fe80 id=&apos;09edcb2c-6663-46f1-ad78-aba9cdcc3833&apos;&gt;
07:07:48.517 3617         2026-05-19 06:35:05.173 TestWebKitAPI[34536:1015152] Expected data: &lt;10 bytes&gt; but observed: &lt;38 bytes&gt; for &lt;_WKAttachment 0x60000210fe80 id=&apos;09edcb2c-6663-46f1-ad78-aba9cdcc3833&apos;&gt;
07:07:48.517 3617         2026-05-19 06:35:05.173 TestWebKitAPI[34536:1015152] Observed error: (null) while reading data for &lt;_WKAttachment 0x60000210fe80 id=&apos;09edcb2c-6663-46f1-ad78-aba9cdcc3833&apos;&gt;
07:07:48.517 3617         
07:07:48.517 3617         /Volumes/Data/worker/iOS-26-Simulator-Build-EWS/build/Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKAttachmentTests.mm:2642
07:07:48.517 3617         Expected equality of these values:
07:07:48.517 3617           2U
07:07:48.517 3617             Which is: 2
07:07:48.517 3617           observer.observer().inserted.count
07:07:48.517 3617             Which is: 1


Test history:
https://results.webkit.org/?suite=api-tests&amp;suite=api-tests&amp;test=TestWebKitAPI.WKAttachmentTestsIOS.InsertPastedFilesAsAttachments&amp;test=TestWebKitAPI.WKAttachmentTestsIOS.InsertPastedContactAsAttachment&amp;platform=ios

Test results:
https://ews-build.webkit.org/#/builders/13/builds/137965</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212171</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-05-19 13:45:10 -0700</bug_when>
    <thetext>&lt;rdar://problem/177462776&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212178</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-19 14:02:21 -0700</bug_when>
    <thetext>Test gardening commit 313518@main (4bbb48218481): &lt;https://commits.webkit.org/313518@main&gt;

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

    </bug>

</bugzilla>