status.sub.html (602B)
1 'use strict'; 2 3 <script src=/resources/testharness.js></script> 4 <script src=/resources/testharnessreport.js></script> 5 <div id=log></div> 6 <script> 7 async_test(function(t) { 8 let url = "http://{{domains[www1]}}:{{ports[http][0]}}" 9 url = `${url}/fetch/orb/resources/sound.mp3?pipe=status(301)|header(Content-Type,)` 10 11 const video = document.createElement("video"); 12 video.src = url; 13 video.onerror = t.step_func_done(); 14 video.onload = t.unreached_func("Unexpected error event"); 15 document.body.appendChild(video); 16 }, "ORB should block initial media requests with status not 200 or 206"); 17 </script>