accept-ch-malformed-header.https.html (720B)
1 <!DOCTYPE html> 2 <body> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script src="resources/open-and-add-load-event.js"></script> 6 7 <script> 8 9 promise_test(async t => { 10 t.add_cleanup(() => { 11 return open_and_add_load_event("resources/accept-ch-empty.html"); 12 }); 13 14 await open_and_add_load_event("resources/accept-ch-malformed.html"); 15 // Verify that the browser does not include client hints in the headers 16 // since Accept-CH is malformed (includes whitespace between attributes 17 // instead of comma). 18 await open_and_expect_headers("resources/expect-no-client-hints-headers.html"); 19 }, "Accept-CH malformed header test"); 20 21 </script> 22 23 </body> 24 </html>