Skip to content

Only pass user agent to HTTP loader factory #7968

@jdm

Description

@jdm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-networkC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions