Bug 223488 - [ macOS wk2 Release ARM64 ] 3 http/wpt/beacon/cors/cors-preflight-blob are flakey text failures
Summary: [ macOS wk2 Release ARM64 ] 3 http/wpt/beacon/cors/cors-preflight-blob are fl...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-18 16:51 PDT by Robert Jenner
Modified: 2021-04-09 15:13 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Jenner 2021-03-18 16:51:26 PDT
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&suite=layout-tests&suite=layout-tests&test=http%2Fwpt%2Fbeacon%2Fcors%2Fcors-preflight-blob-failure.html&test=http%2Fwpt%2Fbeacon%2Fcors%2Fcors-preflight-blob-success.html&test=http%2Fwpt%2Fbeacon%2Fcors%2Fcors-preflight-redirect-success.html&architecture=arm64

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

+FAIL CORS preflight failure test assert_equals: Preflight referer header expected "http://localhost:8800/WebKit/beacon/cors/cors-preflight-blob-failure.html" but got "http://localhost:8800/"
Comment 1 Radar WebKit Bug Importer 2021-03-18 16:51:45 PDT
<rdar://problem/75597467>
Comment 2 Robert Jenner 2021-03-18 16:58:14 PDT
Updated test expectations to Pass Failure due to test's flakiness:
https://trac.webkit.org/changeset/274690/webkit
Comment 3 Robert Jenner 2021-03-18 16:58:52 PDT
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.
Comment 4 Alex Christensen 2021-03-22 16:23:21 PDT
On my Apple Silicon Mac I can't reproduce this failure.
Comment 5 Chris Dumez 2021-04-09 15:06:03 PDT
I don'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.
Comment 6 Chris Dumez 2021-04-09 15:13:26 PDT
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&, WebCore::ReferrerPolicy, WTF::String const&)
2   0x11d35b103 WebCore::CachedResourceRequest::updateReferrerAndOriginHeaders(WebCore::FrameLoader&)
3   0x11d35b04e WebCore::CachedResourceLoader::updateHTTPRequestHeaders(WebCore::FrameLoader&, WebCore::CachedResource::Type, WebCore::CachedResourceRequest&)
4   0x11d356787 WebCore::CachedResourceLoader::requestResource(WebCore::CachedResource::Type, WebCore::CachedResourceRequest&&, WebCore::CachedResourceLoader::ForPreload, WebCore::ImageLoading)
5   0x11d358ad1 WebCore::CachedResourceLoader::requestBeaconResource(WebCore::CachedResourceRequest&&)
6   0x11b47fa7f WebCore::NavigatorBeacon::sendBeacon(WebCore::Document&, WTF::String const&, WTF::Optional<WTF::Variant<WTF::RefPtr<WebCore::Blob, WTF::RawPtrTraits<WebCore::Blob>, WTF::DefaultRefDerefTraits<WebCore::Blob> >, WTF::RefPtr<JSC::ArrayBufferView, WTF::RawPtrTraits<JSC::ArrayBufferView>, WTF::DefaultRefDerefTraits<JSC::ArrayBufferView> >, WTF::RefPtr<JSC::ArrayBuffer, WTF::RawPtrTraits<JSC::ArrayBuffer>, WTF::DefaultRefDerefTraits<JSC::ArrayBuffer> >, WTF::RefPtr<WebCore::DOMFormData, WTF::RawPtrTraits<WebCore::DOMFormData>, WTF::DefaultRefDerefTraits<WebCore::DOMFormData> >, WTF::RefPtr<WebCore::URLSearchParams, WTF::RawPtrTraits<WebCore::URLSearchParams>, WTF::DefaultRefDerefTraits<WebCore::URLSearchParams> >, WTF::RefPtr<WebCore::ReadableStream, WTF::RawPtrTraits<WebCore::ReadableStream>, WTF::DefaultRefDerefTraits<WebCore::ReadableStream> >, WTF::String> >&&)
7   0x11b4801db WebCore::NavigatorBeacon::sendBeacon(WebCore::Navigator&, WebCore::Document&, WTF::String const&, WTF::Optional<WTF::Variant<WTF::RefPtr<WebCore::Blob, WTF::RawPtrTraits<WebCore::Blob>, WTF::DefaultRefDerefTraits<WebCore::Blob> >, WTF::RefPtr<JSC::ArrayBufferView, WTF::RawPtrTraits<JSC::ArrayBufferView>, WTF::DefaultRefDerefTraits<JSC::ArrayBufferView> >, WTF::RefPtr<JSC::ArrayBuffer, WTF::RawPtrTraits<JSC::ArrayBuffer>, WTF::DefaultRefDerefTraits<JSC::ArrayBuffer> >, WTF::RefPtr<WebCore::DOMFormData, WTF::RawPtrTraits<WebCore::DOMFormData>, WTF::DefaultRefDerefTraits<WebCore::DOMFormData> >, WTF::RefPtr<WebCore::URLSearchParams, WTF::RawPtrTraits<WebCore::URLSearchParams>, WTF::DefaultRefDerefTraits<WebCore::URLSearchParams> >, WTF::RefPtr<WebCore::ReadableStream, WTF::RawPtrTraits<WebCore::ReadableStream>, WTF::DefaultRefDerefTraits<WebCore::ReadableStream> >, WTF::String> >&&)
8   0x11a84a84f WebCore::jsNavigatorPrototypeFunction_sendBeaconBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSNavigator*)
9   0x11a84a40c long long WebCore::IDLOperation<WebCore::JSNavigator>::call<&(WebCore::jsNavigatorPrototypeFunction_sendBeaconBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSNavigator*)), (WebCore::CastedThisErrorBehavior)0>(JSC::JSGlobalObject&, JSC::CallFrame&, char const*)
10  0x11a849b14 WebCore::jsNavigatorPrototypeFunction_sendBeacon(JSC::JSGlobalObject*, JSC::CallFrame*)