Bug 259374

Summary: [ Monterey+ WK2 ] http/tests/inspector/network/xhr-request-type.html is a constant TEXT failure
Product: WebKit Reporter: Ben Schwartz <ben_schwartz>
Component: Web InspectorAssignee: Yury Semikhatsky <yurys>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, hi, inspector-bugzilla-changes, jenner, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf, yurys
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=257407

Description Ben Schwartz 2023-07-20 16:02:29 PDT
http/tests/inspector/network/xhr-request-type.html

This test is a constant TEXT failure on macOS Monterey and higher, WebKit 2.

HISTORY:

https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2Finspector%2Fnetwork%2Fxhr-request-type.html

TEXT DIFF:

 == Running test suite: Resource.Type.XHR
 -- Running test case: Resource.Type.XHR.Same.As.Main.Resource.Url
-PASS: Resource should be XHR type.
+FAIL: Resource should be XHR type.
+    Expected: "resource-type-xhr"
+    Actual: "resource-type-document"
 PASS: Resource should be a GET request.
-PASS: Resource should have a 200 response.
-PASS: Resource should receive main resource in response.
+!! TIMEOUT: took longer than 10000ms
 
 -- Running test case: Resource.Type.XHR.Another.Url
 PASS: Resource should be XHR type.
 PASS: Resource should be a GET request.
 PASS: Resource should have a 200 response.
-PASS: Resource should receive json in response.
+FAIL: Resource should receive json in response.
+    Expected: "{\"json\": true, \"value\": 42}\n"
+    Actual: "eyJqc29uIjogdHJ1ZSwgInZhbHVlIjogNDJ9Cg=="

DIFF URL:

https://build.webkit.org/results/Apple-Ventura-Release-AppleSilicon-WK2-Tests/266183@main%20(4100)/http/tests/inspector/network/xhr-request-type-pretty-diff.html
Comment 1 Radar WebKit Bug Importer 2023-07-20 16:03:10 PDT
<rdar://problem/112625805>
Comment 2 Ben Schwartz 2023-07-20 16:06:43 PDT
This test seems to have been a constant failure since it was introduced at this commit: https://commits.webkit.org/264686@main.

Furthermore, I was able to reproduce this test failure at macOS Ventura Production ToT running the test as follows:

run-webkit-tests http/tests/inspector/network/xhr-request-type.html --verbose --iterations 10
Comment 3 Ben Schwartz 2023-07-20 16:25:31 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15962
Comment 4 EWS 2023-07-20 16:31:27 PDT
Test gardening commit 266190@main (b4ee2cac49b7): <https://commits.webkit.org/266190@main>

Reviewed commits have been landed. Closing PR #15962 and removing active labels.
Comment 5 Ben Schwartz 2023-07-20 16:42:33 PDT
Starting the bug on Yuri, who introduced the test as a constant failure for macOS at https://commits.webkit.org/264686@main.

Marked the test expectation as a failure for macOS WK2.
Comment 6 Yury Semikhatsky 2023-09-01 19:39:42 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17369
Comment 7 EWS 2023-09-06 13:12:44 PDT
Committed 267688@main (59ea483f709d): <https://commits.webkit.org/267688@main>

Reviewed commits have been landed. Closing PR #17369 and removing active labels.
Comment 8 Ben Schwartz 2023-09-06 15:29:47 PDT
Verified issue resolved as of 267688@main. Thanks Yury!