Truly independent web browser
Tests: Match insecure test hosts in WPT template substitutions
Andreas Kling14738288c82f
diff --git a/Tests/LibWeb/Fixtures/http-test-server.py b/Tests/LibWeb/Fixtures/http-test-server.pyindex fa48aa3c02b..ce1d1490679 100755--- a/Tests/LibWeb/Fixtures/http-test-server.py+++ b/Tests/LibWeb/Fixtures/http-test-server.py@@ -177,10 +177,10 @@ class WPTContext:return configdef apply_config_for_request(self, request):- # test-web serves each test it loads over HTTP from a unique test-web-*.localhost host, so substitutions like- # {{host}} and {{domains[www1]}} name that host and its subdomains, as they name the test's host in WPT.+ # test-web uses unique test-web-*.localhost hosts, or test-web-*.test for insecure-origin tests.+ # Substitutions like {{host}} and {{domains[www1]}} must name that test host and its subdomains.hostname = request.url_parts.hostname or ""- match = re.search(r"(?:^|\.)(test-web-[0-9a-fA-F-]+\.localhost)$", hostname)+ match = re.search(r"(?:^|\.)(test-web-[0-9a-fA-F-]+\.(?:localhost|test))$", hostname)if not match:return