XHRs requests with the same url as main resource should have type XHR rather than Document. This was fixed in https://bugs.webkit.org/show_bug.cgi?id=68646 but regressed at some point later. Original report in Playwright: https://github.com/microsoft/playwright/issues/22812
Pull request: https://github.com/WebKit/WebKit/pull/14417
Committed 264686@main (883556d2265f): <https://commits.webkit.org/264686@main> Reviewed commits have been landed. Closing PR #14417 and removing active labels.
<rdar://problem/110016863>
http/tests/inspector/network/xhr-request-type.html is failing. Could you take a look? https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2Finspector%2Fnetwork%2Fxhr-request-type.html
Hmm, the .json resource is returned in base64 on some platforms, I'll take a look.
The test is passing locally on M1 and macOS 13. I wonder if it has to do with the web server config.
This test failure is reproducible with WinCairo. The web server doesn't know .json filename suffix. Renaming data.json to data.js can works around the server configuration problem.