Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ae76dacf89fa38b6fab82faae6c680cd70e7e2cf
      
https://github.com/WebKit/WebKit/commit/ae76dacf89fa38b6fab82faae6c680cd70e7e2cf
  Author: Fujii Hironori <[email protected]>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M LayoutTests/http/conf/apache2.2-httpd.conf
    M LayoutTests/http/conf/apache2.4-darwin-httpd.conf
    M LayoutTests/http/conf/apache2.4-httpd.conf
    M LayoutTests/http/conf/archlinux-httpd.conf
    M LayoutTests/http/conf/debian-httpd-2.4.conf
    M LayoutTests/http/conf/fedora-httpd-2.2.conf
    M LayoutTests/http/conf/fedora-httpd-2.4.conf
    M LayoutTests/http/conf/win-httpd-2.4.conf
    M 
LayoutTests/http/tests/contentextensions/block-cookies-in-csp-report.py.json
    M LayoutTests/http/tests/contentextensions/block-csp-report.py.json
    M 
LayoutTests/http/tests/contentextensions/block-everything-unless-domain-redirect.py.json
    M LayoutTests/http/tests/contentextensions/hide-on-csp-report.py.json
    M 
LayoutTests/http/tests/contentextensions/main-resource-redirect-blocked.py.json
    M LayoutTests/platform/glib/TestExpectations

  Log Message:
  -----------
  http tests: Add a json handler not to treat *.py.json files as CGI scripts
https://bugs.webkit.org/show_bug.cgi?id=223965

Reviewed by Nikolas Zimmermann.

After 235901@main converted PHP scripts to Python,
http/tests/contentextensions/*.py tests were crashing in
TestController::configureContentExtensionForTest() for WPE and GTK ports
because it failed to parse content extension *.py.json files. The change
converted the content extension *.json files to Python scripts.

The Apache config file has the following line:
> AddHandler cgi-script .cgi .pl .py

Thus, *.py.json files were treated as CGI. This change adds the following line:
> AddHandler default-handler .json

Then, *.py.json files are handled by default-handler because the right-most
suffix is json.
<https://httpd.apache.org/docs/current/en/mod/mod_mime.html#multipleext>

There are two TestController::configureContentExtensionForTest implementations,
Mac's and others. Mac's implementation fetch the content extension *.json files
by using NSURLSession. On the other hand, others implementation directly read
the files.

* LayoutTests/http/conf/apache2.2-httpd.conf:
* LayoutTests/http/conf/apache2.4-darwin-httpd.conf:
* LayoutTests/http/conf/apache2.4-httpd.conf:
* LayoutTests/http/conf/archlinux-httpd.conf:
* LayoutTests/http/conf/debian-httpd-2.4.conf:
* LayoutTests/http/conf/fedora-httpd-2.2.conf:
* LayoutTests/http/conf/fedora-httpd-2.4.conf:
* LayoutTests/http/conf/win-httpd-2.4.conf:
* LayoutTests/http/tests/contentextensions/block-cookies-in-csp-report.py.json:
* LayoutTests/http/tests/contentextensions/block-csp-report.py.json:
* 
LayoutTests/http/tests/contentextensions/block-everything-unless-domain-redirect.py.json:
* LayoutTests/http/tests/contentextensions/hide-on-csp-report.py.json:
* 
LayoutTests/http/tests/contentextensions/main-resource-redirect-blocked.py.json:
* LayoutTests/platform/glib/TestExpectations:

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



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

Reply via email to