OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <head> |
| 3 <title>Block 'text/csv' when served as script.</title> |
| 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <script> |
| 7 window.scriptsSuccessfullyLoaded = 0; |
| 8 </script> |
| 9 </head> |
| 10 <body> |
| 11 <script src="resources/script-with-header.pl?mime=text/csv&options=inval
id"></script> |
| 12 <script> |
| 13 test(function () { |
| 14 assert_equals(window.scriptsSuccessfullyLoaded, 0); |
| 15 }, "text/csv scripts should be blocked."); |
| 16 </script> |
| 17 <script src="resources/script-with-header.pl?mime=text/html&options=inva
lid"></script> |
| 18 <script src="resources/script-with-header.pl?mime=text/plain&options=inv
alid"></script> |
| 19 <script> |
| 20 test(function () { |
| 21 assert_equals(window.scriptsSuccessfullyLoaded, 2); |
| 22 }, "text/[not-csv] scripts should not be blocked."); |
| 23 </script> |
| 24 </body> |
| 25 </html> |
| 26 |
OLD | NEW |