Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 63b4d8f6ae116a67e1f81e167a91ff50b3fa06de
      
https://github.com/WebKit/WebKit/commit/63b4d8f6ae116a67e1f81e167a91ff50b3fa06de
  Author: Roberto Rodriguez <[email protected]>
  Date:   2026-05-26 (Tue, 26 May 2026)

  Changed paths:
    A LayoutTests/http/tests/resources/nph-load-then-wait.cgi
    M LayoutTests/http/tests/xmlhttprequest/onabort-response-getters.html
    M LayoutTests/platform/glib/TestExpectations
    M LayoutTests/platform/ios/TestExpectations
    M LayoutTests/platform/mac/TestExpectations

  Log Message:
  -----------
  Fix http/tests/xmlhttprequest/onabort-response-getters.html test failure
https://bugs.webkit.org/show_bug.cgi?id=162647
rdar://177571266

Reviewed by Sam Sneddon.

Apache uses Transfer-Encoding: chunked for CGI responses, stripping the 
Content-Length
header that load-then-wait.cgi outputs. Without it, progress events report 
total=0 so the
test condition e.total == e.loaded is never true and abort() is never called 
during progress.
The XHR completes normally and the response is non-null when the test expects 
null.

Switch the test to use a NPH (No Parsed Headers) CGI script that outputs the 
full HTTP response
directly to bypass Apache's header manipulation so Content-Length reaches 
client intact.

* LayoutTests/http/tests/resources/nph-load-then-wait.cgi: Added.
* LayoutTests/http/tests/xmlhttprequest/onabort-response-getters.html:
* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/ios/TestExpectations:
* LayoutTests/platform/mac/TestExpectations:

Canonical link: https://commits.webkit.org/313905@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to