| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 var t = async_test("Ensure preloads use video poster crossorigin value"); |
| 6 window.addEventListener('load', t.step_func(function() { |
| 7 var entries = performance.getEntriesByName("http://localhost:8080/security
/resources/image-access-control.php?file=../../resources/square100.png&allow=fal
se"); |
| 8 assert_equals(entries.length, 0, "100.png should not be loaded"); |
| 9 |
| 10 entries = performance.getEntriesByName("http://localhost:8080/security/res
ources/image-access-control.php?file=../../resources/square200.png&allow=true"); |
| 11 assert_equals(entries.length, 1, "200.png should load successfully once, a
s the server is using Access-Control-Allow-Origin: *"); |
| 12 |
| 13 entries = performance.getEntriesByName("http://localhost:8080/security/res
ources/image-access-control.php?file=../../resources/square20.png&allow=false"); |
| 14 assert_equals(entries.length, 1, "20.png should load successfully once, as
it is loaded with no-cors"); |
| 15 t.done(); |
| 16 })); |
| 17 </script> |
| 18 <video poster="http://localhost:8080/security/resources/image-access-control.php
?file=../../resources/square100.png&allow=false" crossorigin> |
| 19 </video> |
| 20 |
| 21 <video poster="http://localhost:8080/security/resources/image-access-control.php
?file=../../resources/square200.png&allow=true" crossorigin> |
| 22 </video> |
| 23 |
| 24 <video poster="http://localhost:8080/security/resources/image-access-control.php
?file=../../resources/square20.png&allow=false"> |
| 25 </video> |
| OLD | NEW |