mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
This is a followup to https://github.com/servo/servo/pull/33825. Using `Encoder::encode` introduced a subtle bug: That function will silently replace nonmappable code points (such as `㐀` in euc-jp). The url spec however expects nonmappable characters to be treated differently. There is actually an open bug in the `rust-url` repo about this: https://github.com/servo/rust-url/issues/649, with the conclusion apparently being that this should not be implemented by the url crate itself. Gecko implementation of the equivalent algorithm for reference: https://searchfox.org/mozilla-central/rev/d52edf7ea4236446e118a2edc815023c5479663f/netwerk/base/nsStandardURL.cpp#116-172. Testing: More web platform tests pass Part of https://github.com/servo/servo/issues/5601 --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
22 lines
578 B
TOML
22 lines
578 B
TOML
[package]
|
|
name = "servo_url"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lib]
|
|
name = "servo_url"
|
|
path = "lib.rs"
|
|
|
|
[dependencies]
|
|
encoding_rs = { workspace = true }
|
|
malloc_size_of = { workspace = true }
|
|
malloc_size_of_derive = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
servo_arc = { workspace = true }
|
|
servo_rand = { path = "../rand" }
|
|
url = { workspace = true, features = ["serde"] }
|
|
uuid = { workspace = true, features = ["serde"] }
|