fix(chromium): report 204 subresource responses as finished - #42834
Conversation
| // Chromium aborts 204 subresource responses with net::ERR_ABORTED, while other browsers | ||
| // report them as finished. Navigation 204 responses are aborted in all browsers. | ||
| if (response?.status() === 204 && !request.request.isNavigationRequest()) { |
There was a problem hiding this comment.
isNavigationRequest is a wrong differentiator here, listener to all network on a context should treat all 204s equally.
There was a problem hiding this comment.
removed, it's not necessary, Page.navigate already has the error.
This comment has been minimized.
This comment has been minimized.
3988aaf
into
microsoft:main
Test results for "tests 1"7 flaky52038 passed, 1244 skipped Merge workflow run. |
Test results for "MCP"3 failed 8689 passed, 1474 skipped Merge workflow run. |
🟢 All three failures are known flakes — the PR is clearHi, I'm the Playwright bot and I triaged the failing CI run. The three reds are all DetailsPre-existing flake / infra
Scope check
Counts are from the aggregated CI results database (2014 runs), refreshed with the last 3 days before querying. Triaged by the Playwright bot - agent run |
Summary
Network.loadingFailedwithnet::ERR_ABORTED; treat it as finished like other browsers do.page.gototo a 204 URL still fails in Chromium: the error comes from theerrorTextin thePage.navigatecommand result, not from the network events.Fixes #42786