<?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>223488</bug_id>
          
          <creation_ts>2021-03-18 16:51:26 -0700</creation_ts>
          <short_desc>[ macOS wk2 Release ARM64 ] 3 http/wpt/beacon/cors/cors-preflight-blob are flakey text failures</short_desc>
          <delta_ts>2021-04-09 15:13:26 -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="Robert Jenner">jenner</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>cdumez</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1741512</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-03-18 16:51:26 -0700</bug_when>
    <thetext>http/wpt/beacon/cors/cors-preflight-blob-failure.html
http/wpt/beacon/cors/cors-preflight-blob-success.html
http/wpt/beacon/cors/cors-preflight-redirect-success.html

are flakey text failures in macOS BigSur Release wk2 on Apple Silicon Only. 

HISTORY URL:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=http%2Fwpt%2Fbeacon%2Fcors%2Fcors-preflight-blob-failure.html&amp;test=http%2Fwpt%2Fbeacon%2Fcors%2Fcors-preflight-blob-success.html&amp;test=http%2Fwpt%2Fbeacon%2Fcors%2Fcors-preflight-redirect-success.html&amp;architecture=arm64

All three tests appear to have the same Text DIFF Failure: 

+FAIL CORS preflight failure test assert_equals: Preflight referer header expected &quot;http://localhost:8800/WebKit/beacon/cors/cors-preflight-blob-failure.html&quot; but got &quot;http://localhost:8800/&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741513</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-18 16:51:45 -0700</bug_when>
    <thetext>&lt;rdar://problem/75597467&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741515</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-03-18 16:58:14 -0700</bug_when>
    <thetext>Updated test expectations to Pass Failure due to test&apos;s flakiness:
https://trac.webkit.org/changeset/274690/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741516</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-03-18 16:58:52 -0700</bug_when>
    <thetext>Failures only occur on Apple Silicon Macs, and as such I cannot reproduce the failures, or track down a regression point as I do not have access to an Apple Silicon Mac.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742549</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2021-03-22 16:23:21 -0700</bug_when>
    <thetext>On my Apple Silicon Mac I can&apos;t reproduce this failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1748880</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-04-09 15:06:03 -0700</bug_when>
    <thetext>I don&apos;t have access to an M1 but it is hard to imagine such failure would be specific to M1.

I tried reproducing on my Intel machine like so:
run-webkit-tests http/wpt/beacon/cors/cors-preflight-blob-failure.html --repeat-each=100 -gf

Did not reproduce though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1748885</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-04-09 15:13:26 -0700</bug_when>
    <thetext>Normally, the Referer header for beacon loads gets set like so:

LOGGING: newOutgoingReferrer is http://localhost:8800/WebKit/beacon/cors/cors-preflight-blob-failure.html
1   0x11d1c0dc3 WebCore::updateRequestReferrer(WebCore::ResourceRequest&amp;, WebCore::ReferrerPolicy, WTF::String const&amp;)
2   0x11d35b103 WebCore::CachedResourceRequest::updateReferrerAndOriginHeaders(WebCore::FrameLoader&amp;)
3   0x11d35b04e WebCore::CachedResourceLoader::updateHTTPRequestHeaders(WebCore::FrameLoader&amp;, WebCore::CachedResource::Type, WebCore::CachedResourceRequest&amp;)
4   0x11d356787 WebCore::CachedResourceLoader::requestResource(WebCore::CachedResource::Type, WebCore::CachedResourceRequest&amp;&amp;, WebCore::CachedResourceLoader::ForPreload, WebCore::ImageLoading)
5   0x11d358ad1 WebCore::CachedResourceLoader::requestBeaconResource(WebCore::CachedResourceRequest&amp;&amp;)
6   0x11b47fa7f WebCore::NavigatorBeacon::sendBeacon(WebCore::Document&amp;, WTF::String const&amp;, WTF::Optional&lt;WTF::Variant&lt;WTF::RefPtr&lt;WebCore::Blob, WTF::RawPtrTraits&lt;WebCore::Blob&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Blob&gt; &gt;, WTF::RefPtr&lt;JSC::ArrayBufferView, WTF::RawPtrTraits&lt;JSC::ArrayBufferView&gt;, WTF::DefaultRefDerefTraits&lt;JSC::ArrayBufferView&gt; &gt;, WTF::RefPtr&lt;JSC::ArrayBuffer, WTF::RawPtrTraits&lt;JSC::ArrayBuffer&gt;, WTF::DefaultRefDerefTraits&lt;JSC::ArrayBuffer&gt; &gt;, WTF::RefPtr&lt;WebCore::DOMFormData, WTF::RawPtrTraits&lt;WebCore::DOMFormData&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::DOMFormData&gt; &gt;, WTF::RefPtr&lt;WebCore::URLSearchParams, WTF::RawPtrTraits&lt;WebCore::URLSearchParams&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::URLSearchParams&gt; &gt;, WTF::RefPtr&lt;WebCore::ReadableStream, WTF::RawPtrTraits&lt;WebCore::ReadableStream&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::ReadableStream&gt; &gt;, WTF::String&gt; &gt;&amp;&amp;)
7   0x11b4801db WebCore::NavigatorBeacon::sendBeacon(WebCore::Navigator&amp;, WebCore::Document&amp;, WTF::String const&amp;, WTF::Optional&lt;WTF::Variant&lt;WTF::RefPtr&lt;WebCore::Blob, WTF::RawPtrTraits&lt;WebCore::Blob&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Blob&gt; &gt;, WTF::RefPtr&lt;JSC::ArrayBufferView, WTF::RawPtrTraits&lt;JSC::ArrayBufferView&gt;, WTF::DefaultRefDerefTraits&lt;JSC::ArrayBufferView&gt; &gt;, WTF::RefPtr&lt;JSC::ArrayBuffer, WTF::RawPtrTraits&lt;JSC::ArrayBuffer&gt;, WTF::DefaultRefDerefTraits&lt;JSC::ArrayBuffer&gt; &gt;, WTF::RefPtr&lt;WebCore::DOMFormData, WTF::RawPtrTraits&lt;WebCore::DOMFormData&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::DOMFormData&gt; &gt;, WTF::RefPtr&lt;WebCore::URLSearchParams, WTF::RawPtrTraits&lt;WebCore::URLSearchParams&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::URLSearchParams&gt; &gt;, WTF::RefPtr&lt;WebCore::ReadableStream, WTF::RawPtrTraits&lt;WebCore::ReadableStream&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::ReadableStream&gt; &gt;, WTF::String&gt; &gt;&amp;&amp;)
8   0x11a84a84f WebCore::jsNavigatorPrototypeFunction_sendBeaconBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSNavigator*)
9   0x11a84a40c long long WebCore::IDLOperation&lt;WebCore::JSNavigator&gt;::call&lt;&amp;(WebCore::jsNavigatorPrototypeFunction_sendBeaconBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSNavigator*)), (WebCore::CastedThisErrorBehavior)0&gt;(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, char const*)
10  0x11a849b14 WebCore::jsNavigatorPrototypeFunction_sendBeacon(JSC::JSGlobalObject*, JSC::CallFrame*)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>