Failed fetches throw TypeError
diff --git a/content-security-policy/connect-src/connect-src-json-import-blocked.sub.html b/content-security-policy/connect-src/connect-src-json-import-blocked.sub.html
index 520220f..d1a685e 100644
--- a/content-security-policy/connect-src/connect-src-json-import-blocked.sub.html
+++ b/content-security-policy/connect-src/connect-src-json-import-blocked.sub.html
@@ -22,7 +22,7 @@
         });
 
         return Promise.all([
-          promise_rejects_js(t, Error, import("/common/dummy.json", { with: { type: "json" } })),
+          promise_rejects_js(t, TypeError, import("/common/dummy.json", { with: { type: "json" } })),
           check_spv,
         ]);
       });
diff --git a/content-security-policy/style-src/import-style-blocked.sub.html b/content-security-policy/style-src/import-style-blocked.sub.html
index 3ce2cce..c507f41 100644
--- a/content-security-policy/style-src/import-style-blocked.sub.html
+++ b/content-security-policy/style-src/import-style-blocked.sub.html
@@ -23,7 +23,7 @@
           });
 
           return Promise.all([
-            promise_rejects_js(t, Error, import("./resources/blocked.css", { with: { type: "css" } })),
+            promise_rejects_js(t, TypeError, import("./resources/blocked.css", { with: { type: "css" } })),
             check_spv,
           ]);
         });