Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <title>This tests onerror event is fired if we change image src to a url blocked by content-security-policy.</title> | |
| 3 <meta http-equiv="Content-Security-Policy" content="img-src 'self'"> | |
| 4 <script src="../../../resources/testharness.js"></script> | |
| 5 <script src="../../../resources/testharnessreport.js"></script> | |
| 6 <img src="../resources/image-error-event-not-firing-test-image.png"></img> | |
|
fs
2016/08/16 10:42:42
We could arguably make this test more robust as we
fs
2016/08/16 10:44:55
Could probably also use one of the the square* fil
sivag
2016/08/16 11:54:21
Done.
sivag
2016/08/16 11:54:21
Done.
| |
| 7 <script> | |
| 8 async_test(function(t) { | |
| 9 var img = document.querySelector("img"); | |
| 10 img.onerror = t.step_func_done(); | |
| 11 img.src = "http://127.0.0.1:8000/resources/image-error-event-not-firing-test -image.png"; | |
| 12 }); | |
| 13 </script> | |
| OLD | NEW |