Bug 230112

Summary: [BigSur wk2] http/tests/fetch/redirectmode-and-preload.html is a flaky failure
Product: WebKit Reporter: Eric Hutchison <ehutchison>
Component: Page LoadingAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, bfulgham, ehutchison, koivisto, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Eric Hutchison 2021-09-09 10:37:32 PDT
http/tests/fetch/redirectmode-and-preload.html

is a flaky failure on BigSur wk2.

History: https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2Ffetch%2Fredirectmode-and-preload.html&platform=mac

Results: https://build.webkit.org/results/Apple-BigSur-Release-WK2-Tests/r282213%20(5031)/results.html

Diff:
--- /Volumes/Data/worker/bigsur-release-tests-wk2/build/layout-test-results/http/tests/fetch/redirectmode-and-preload-expected.txt
+++ /Volumes/Data/worker/bigsur-release-tests-wk2/build/layout-test-results/http/tests/fetch/redirectmode-and-preload-actual.txt
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: The resource http://127.0.0.1:8000/fetch/resources/redirect-with-cache.py?enableCaching&url=http://localhost:8000/security/resources/allow-if-origin.py?allowCache&origin=http%3A%2F%2F127.0.0.1%3A8000&name=alert-fail.js&contentType=text/ascii was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
 CONSOLE MESSAGE: Not allowed to follow a redirection while loading http://127.0.0.1:8000/fetch/resources/redirect-with-cache.py?enableCaching&url=http://localhost:8000/security/resources/allow-if-origin.py?allowCache&origin=http%3A%2F%2F127.0.0.1%3A8000&name=alert-fail.js&contentType=text/ascii
 CONSOLE MESSAGE: Fetch API cannot load http://127.0.0.1:8000/fetch/resources/redirect-with-cache.py?enableCaching&url=http://localhost:8000/security/resources/allow-if-origin.py?allowCache&origin=http%3A%2F%2F127.0.0.1%3A8000&name=alert-fail.js&contentType=text/ascii due to access control checks.

Will attempt to reproduce and update with results.
Comment 1 Radar WebKit Bug Importer 2021-09-09 10:38:48 PDT
<rdar://problem/82932781>
Comment 2 Eric Hutchison 2021-09-09 10:46:05 PDT
Updated test expectations at https://trac.webkit.org/changeset/282225/webkit.
Comment 3 Eric Hutchison 2021-09-09 11:08:45 PDT
Unable to reproduce test results on r282216 or r281854 using run-webkit-tests --iterations 1000 --exit-after-n-failures 1 --clobber-old-results --force -f --no-build http/tests/fetch/redirectmode-and-preload.html.
Comment 4 youenn fablet 2022-03-14 03:43:25 PDT
Created attachment 454572 [details]
Patch
Comment 5 EWS 2022-03-14 04:36:09 PDT
Committed r291222 (248377@main): <https://commits.webkit.org/248377@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454572 [details].