Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only pass user agent to HTTP loader factory #7968

Closed
jdm opened this issue Oct 11, 2015 · 1 comment
Closed

Only pass user agent to HTTP loader factory #7968

jdm opened this issue Oct 11, 2015 · 1 comment

Comments

@jdm
Copy link
Member

@jdm jdm commented Oct 11, 2015

The user agent string is only useful for HTTP requests, but we're passing it to every resource loader factory. We can treat it like the other HTTP-only data (hsts_list, cookie_storage, etc.) in ResourceManager::load and clean up the other resources loaders that don't use it (see the _user_agent argument in the from_factory function.

Code: components/net/resource_task.rs

@craftytrickster
Copy link
Contributor

@craftytrickster craftytrickster commented Oct 12, 2015

I think I may have an idea on how to do this, I can give it a try.

bors-servo pushed a commit that referenced this issue Oct 13, 2015
Removed user agent parameter from being unnecessarily passed

#7968

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8004)
<!-- Reviewable:end -->
@jdm jdm closed this Oct 27, 2015
jrmuizel pushed a commit to jrmuizel/gecko-cinnabar that referenced this issue Jun 12, 2017
…arily passed (from craftytrickster:user-agent/#7968); r=jdm

servo/servo#7968

Source-Repo: https://github.com/servo/servo
Source-Revision: bc58cd2de05b371f641051eb1038cd29e36bbb01
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this issue Sep 30, 2019
…arily passed (from craftytrickster:user-agent/#7968); r=jdm

servo/servo#7968

Source-Repo: https://github.com/servo/servo
Source-Revision: bc58cd2de05b371f641051eb1038cd29e36bbb01

UltraBlame original commit: 60b370a29e82858fe6d932fa6df50c1a2db3e821
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this issue Oct 1, 2019
…arily passed (from craftytrickster:user-agent/#7968); r=jdm

servo/servo#7968

Source-Repo: https://github.com/servo/servo
Source-Revision: bc58cd2de05b371f641051eb1038cd29e36bbb01

UltraBlame original commit: 60b370a29e82858fe6d932fa6df50c1a2db3e821
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this issue Oct 1, 2019
…arily passed (from craftytrickster:user-agent/#7968); r=jdm

servo/servo#7968

Source-Repo: https://github.com/servo/servo
Source-Revision: bc58cd2de05b371f641051eb1038cd29e36bbb01

UltraBlame original commit: 60b370a29e82858fe6d932fa6df50c1a2db3e821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.