mirror of
https://github.com/servo/servo
synced 2026-05-13 18:37:30 +02:00
This aligns the request object more with the specification, since the spec now has a `traversable_for_user_prompts` and a separate field for the client. Before, they were present in the same enum. In doing so, new structs are added that are all required in the new spec. With this we can add support for preloaded resources in this client, which are only populated when we have an applicable Global. Since the spec moved things around a bit, it now has a dedicated method to populate the client from the request. Unfortunately none of the WPT preload tests pass, since the requests are received out-of-order. The specification requires us to wait for that to settle, but I haven't figured out yet how to do that. Given that this PR is already quite large, opted to do that in a follow-up. Part of #35035 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>