From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/tools/serve/serve.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'testing/web-platform/tests/tools/serve') diff --git a/testing/web-platform/tests/tools/serve/serve.py b/testing/web-platform/tests/tools/serve/serve.py index 116a98c0fc..300f8270a6 100644 --- a/testing/web-platform/tests/tools/serve/serve.py +++ b/testing/web-platform/tests/tools/serve/serve.py @@ -315,6 +315,20 @@ class WindowHandler(HtmlWrapperHandler): """ +class WindowModulesHandler(HtmlWrapperHandler): + global_type = "window-module" + path_replace = [(".any.window-module.html", ".any.js")] + wrapper = """ + +%(meta)s + + +%(script)s +
+ +""" + + class AnyHtmlHandler(HtmlWrapperHandler): global_type = "window" path_replace = [(".any.html", ".any.js")] @@ -577,6 +591,7 @@ class RoutesBuilder: ("GET", "*.any.serviceworker.html", ServiceWorkersHandler), ("GET", "*.any.serviceworker-module.html", ServiceWorkerModulesHandler), ("GET", "*.any.shadowrealm.html", ShadowRealmHandler), + ("GET", "*.any.window-module.html", WindowModulesHandler), ("GET", "*.any.worker.js", ClassicWorkerHandler), ("GET", "*.any.worker-module.js", ModuleWorkerHandler), ("GET", "*.asis", handlers.AsIsHandler), @@ -585,6 +600,7 @@ class RoutesBuilder: ("*", "/.well-known/attribution-reporting/report-aggregate-attribution", handlers.PythonScriptHandler), ("*", "/.well-known/attribution-reporting/debug/report-aggregate-attribution", handlers.PythonScriptHandler), ("*", "/.well-known/attribution-reporting/debug/verbose", handlers.PythonScriptHandler), + ("GET", "/.well-known/interest-group/permissions/", handlers.PythonScriptHandler), ("*", "/.well-known/private-aggregation/*", handlers.PythonScriptHandler), ("*", "/.well-known/web-identity", handlers.PythonScriptHandler), ("*", "*.py", handlers.PythonScriptHandler), -- cgit v1.2.3