Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
youennf authored May 7, 2024
1 parent d3214b5 commit d3cfe06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion cookies/resources/cookie-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function httpCookieTest(cookie, expectedValue, name, defaultPath = true,
} catch {
if (allowFetchFailure) {
skipAssertions = true;
resolve();
} else {
reject('Failed to fetch /cookies/resources/cookie.py');
}
Expand Down
6 changes: 6 additions & 0 deletions fetch/h1-parsing/resources-with-0x00-in-header.window.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// META: script=/common/get-host-info.sub.js

async_test(t => {
const script = document.createElement("script");
t.add_cleanup(() => script.remove());
Expand Down Expand Up @@ -29,3 +31,7 @@ async_test(t => {
img.onload = t.unreached_func();
document.body.append(img);
}, "Expect network error for image with 0x00 in a header");

promise_test(async t => {
return promise_rejects_js(t, TypeError, fetch(get_host_info().HTTP_REMOTE_ORIGIN + "/fetch/h1-parsing/resources/blue-with-0x00-in-a-header.asis", {mode:"no-cors"}));
}, "Expect network error for fetch with 0x00 in a header");

0 comments on commit d3cfe06

Please sign in to comment.