Skip to content

Conversation

@servo-wpt-sync
Copy link
Collaborator

Rather than having each callside specifying the relevant
information from the GlobalScope, do this via a trait instead.
This would have saved us quite a bit of test debugging
since we would often forget to set relevant information
from the global context for a request.

Now, in the future when we need additional information from
the globalscope for a request, we only need to update this
method to make that happen.

Previously it would also sometimes use document, but
calling the relevant information on either document or
globalscope doesn't matter, since the globalscope
defers to the value from the document anyways.
Reviewed in servo/servo#41663

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

This adds the relevant information on a request client
so that the http_loader can sum it up and check whether
a keep-alive request is allowed to be sent.

Signed-off-by: Tim van der Lippe <[email protected]>
@servo-wpt-sync
Copy link
Collaborator Author

👋 Downstream pull request (servo/servo#41663) no longer contains any upstreamable changes. Closing pull request without merging.

@servo-wpt-sync servo-wpt-sync deleted the servo_export_41663 branch January 5, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants