diff --git a/components/script/dom/request.rs b/components/script/dom/request.rs index 9abfb4b0eb4..8a673e85455 100644 --- a/components/script/dom/request.rs +++ b/components/script/dom/request.rs @@ -324,10 +324,6 @@ impl Request { "The mode is 'no-cors' but the method is not a cors-safelisted method".to_string())); } // Step 30.2 - if !borrowed_request.integrity_metadata.is_empty() { - return Err(Error::Type("Integrity metadata is not an empty string".to_string())); - } - // Step 30.3 r.Headers().set_guard(Guard::RequestNoCors); } diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index 6b49accf7c3..20dc1aaea05 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -558469,7 +558469,7 @@ "testharness" ], "fetch/api/request/request-error.html": [ - "ff308916884f69b3f4aa8f2017c4d9fe0caf0f00", + "0831d11ecf78cddcc2aef2e2adef09429d918922", "testharness" ], "fetch/api/request/request-headers.html": [ diff --git a/tests/wpt/web-platform-tests/fetch/api/request/request-error.html b/tests/wpt/web-platform-tests/fetch/api/request/request-error.html index a04bfde75b7..1777b89d299 100644 --- a/tests/wpt/web-platform-tests/fetch/api/request/request-error.html +++ b/tests/wpt/web-platform-tests/fetch/api/request/request-error.html @@ -51,12 +51,6 @@ "Expect TypeError exception"); },"RequestInit's mode is no-cors and method is not simple"); - test(function() { - assert_throws(new TypeError() , - function() { new Request("", {"mode" : "no-cors", "integrity" : "not an empty string"}); }, - "Expect TypeError exception"); - },"RequestInit's mode is no-cors and integrity is not empty"); - test(function() { assert_throws(new TypeError() , function() { new Request("", {"mode" : "cors", "cache" : "only-if-cached"}); },