OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="/resources/testharness.js"></script> |
| 3 <script src="/resources/testharnessreport.js"></script> |
| 4 <script src="./resources/testharness-helper.js"></script> |
| 5 |
| 6 <meta http-equiv="Content-Security-Policy" content="img-src 'none'"> |
| 7 <script> |
| 8 async_test(t => { |
| 9 waitUntilCSPEventForURL(t, "https://evil.com/img.png") |
| 10 .then(t.step_func_done(e => { |
| 11 var u = new URL(e.documentURI); |
| 12 assert_equals(u.hash, ""); |
| 13 })); |
| 14 |
| 15 window.location.hash = "should-not-appear-in-report"; |
| 16 |
| 17 var i = document.createElement("img"); |
| 18 i.src = "https://evil.com/img.png#boo"; |
| 19 }, "Reported document URI does not contain fragments."); |
| 20 </script> |
OLD | NEW |