diff --git a/Cargo.lock b/Cargo.lock
index ad5c4ea4154..a01dc3830e7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2767,9 +2767,9 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "idna"
-version = "0.4.0"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c"
+checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"
dependencies = [
"unicode-bidi",
"unicode-normalization",
@@ -6348,9 +6348,9 @@ dependencies = [
[[package]]
name = "url"
-version = "2.4.1"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5"
+checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633"
dependencies = [
"form_urlencoded",
"idna",
diff --git a/Cargo.toml b/Cargo.toml
index 9c1809fbc1f..27d60bdb5e2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -97,7 +97,7 @@ tokio-rustls = "0.24"
tungstenite = "0.20"
unicode-bidi = "0.3.4"
unicode-script = "0.5"
-url = "2.4"
+url = "2.5"
uuid = { version = "1.6.1", features = ["v4"] }
webdriver = "0.49.0"
webpki = "0.22"
diff --git a/tests/wpt/meta-legacy-layout/url/url-setters-a-area.window.js.ini b/tests/wpt/meta-legacy-layout/url/url-setters-a-area.window.js.ini
index 7feb5cc3329..c8d1995cb17 100644
--- a/tests/wpt/meta-legacy-layout/url/url-setters-a-area.window.js.ini
+++ b/tests/wpt/meta-legacy-layout/url/url-setters-a-area.window.js.ini
@@ -1375,12 +1375,6 @@
[: Setting .hash = '\x00' Trailing C0 control should be encoded]
expected: FAIL
- [: Setting .search = '' Do not drop trailing spaces from non-trailing opaque paths]
- expected: FAIL
-
- [: Setting .search = '']
- expected: FAIL
-
[url-setters-a-area.window.html?include=mailto]
[: Setting .protocol = 'http' Cannot-be-a-base URL doesn’t have a host, but URL in a special scheme must.]
diff --git a/tests/wpt/meta-legacy-layout/url/url-setters.any.js.ini b/tests/wpt/meta-legacy-layout/url/url-setters.any.js.ini
index c9719df91ee..e2e0d88293e 100644
--- a/tests/wpt/meta-legacy-layout/url/url-setters.any.js.ini
+++ b/tests/wpt/meta-legacy-layout/url/url-setters.any.js.ini
@@ -105,12 +105,6 @@
[URL: Setting .pathname = 'p' Drop /. from path]
expected: FAIL
- [URL: Setting .search = '' Do not drop trailing spaces from non-trailing opaque paths]
- expected: FAIL
-
- [URL: Setting .search = '']
- expected: FAIL
-
[url-setters.any.html?include=javascript]
@@ -175,9 +169,3 @@
[URL: Setting .pathname = 'p' Drop /. from path]
expected: FAIL
-
- [URL: Setting .search = '' Do not drop trailing spaces from non-trailing opaque paths]
- expected: FAIL
-
- [URL: Setting .search = '']
- expected: FAIL
diff --git a/tests/wpt/meta-legacy-layout/url/urlsearchparams-delete.any.js.ini b/tests/wpt/meta-legacy-layout/url/urlsearchparams-delete.any.js.ini
deleted file mode 100644
index f6cf733e35d..00000000000
--- a/tests/wpt/meta-legacy-layout/url/urlsearchparams-delete.any.js.ini
+++ /dev/null
@@ -1,8 +0,0 @@
-[urlsearchparams-delete.any.worker.html]
- [Changing the query of a URL with an opaque path can impact the path if the URL has no fragment]
- expected: FAIL
-
-
-[urlsearchparams-delete.any.html]
- [Changing the query of a URL with an opaque path can impact the path if the URL has no fragment]
- expected: FAIL
diff --git a/tests/wpt/meta/url/url-setters-a-area.window.js.ini b/tests/wpt/meta/url/url-setters-a-area.window.js.ini
index 5179ff004b1..9e92543029f 100644
--- a/tests/wpt/meta/url/url-setters-a-area.window.js.ini
+++ b/tests/wpt/meta/url/url-setters-a-area.window.js.ini
@@ -808,9 +808,3 @@
[: Setting .hash = '\x00' Trailing C0 control should be encoded]
expected: FAIL
-
- [: Setting .search = '' Do not drop trailing spaces from non-trailing opaque paths]
- expected: FAIL
-
- [: Setting .search = '']
- expected: FAIL
diff --git a/tests/wpt/meta/url/url-setters.any.js.ini b/tests/wpt/meta/url/url-setters.any.js.ini
index 6ae0d31e0bf..8be158dbd15 100644
--- a/tests/wpt/meta/url/url-setters.any.js.ini
+++ b/tests/wpt/meta/url/url-setters.any.js.ini
@@ -38,12 +38,6 @@
[URL: Setting .pathname = 'p' Drop /. from path]
expected: FAIL
- [URL: Setting .search = '' Do not drop trailing spaces from non-trailing opaque paths]
- expected: FAIL
-
- [URL: Setting .search = '']
- expected: FAIL
-
[url-setters.any.worker.html?include=javascript]
@@ -105,12 +99,6 @@
[URL: Setting .pathname = 'p' Drop /. from path]
expected: FAIL
- [URL: Setting .search = '' Do not drop trailing spaces from non-trailing opaque paths]
- expected: FAIL
-
- [URL: Setting .search = '']
- expected: FAIL
-
[url-setters.any.worker.html?include=mailto]
diff --git a/tests/wpt/meta/url/urlsearchparams-delete.any.js.ini b/tests/wpt/meta/url/urlsearchparams-delete.any.js.ini
deleted file mode 100644
index f6cf733e35d..00000000000
--- a/tests/wpt/meta/url/urlsearchparams-delete.any.js.ini
+++ /dev/null
@@ -1,8 +0,0 @@
-[urlsearchparams-delete.any.worker.html]
- [Changing the query of a URL with an opaque path can impact the path if the URL has no fragment]
- expected: FAIL
-
-
-[urlsearchparams-delete.any.html]
- [Changing the query of a URL with an opaque path can impact the path if the URL has no fragment]
- expected: FAIL