mirror of
https://github.com/servo/servo.git
synced 2025-10-16 16:29:18 +01:00
In most scenarios, where the user of Servo will not override the default user agent, the user agent can be a `&'static str`. But since we allow for customization, we currently use a `String` to represent the user agent. This commit migrates the user agent to be represented as a `Cow<'static, str>`, which (at the cost of ergonomics) prevents unnecessary allocations whenever cloning the user agent string in the scenario the user doesn't override the user agent. |
||
---|---|---|
.. | ||
gfx | ||
layout | ||
net | ||
net_traits | ||
profile | ||
script | ||
style | ||
stylo | ||
util |