Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
|
Mike West
2017/02/14 07:19:07
It looks like there's an existing test in https://
andypaicu2
2017/02/14 09:09:22
Done
| |
| 2 <title>Data URLs error messages are not sanitized</title> | |
| 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 window.onerror = t.step_func_done(function(msg, url, line, col, error) { | |
| 9 assert_not_equals(msg, 'Script error.'); | |
| 10 assert_equals(url, "data:application/javascript,throw 'This%20is%20an%20erro r%20message'"); | |
| 11 assert_not_equals(line, 0); | |
| 12 assert_not_equals(col, 0); | |
| 13 assert_not_equals(error, null); | |
| 14 }); | |
| 15 }, "Data URLs error messages are not sanitized"); | |
| 16 </script> | |
| 17 <script src="data:application/javascript,throw 'This%20is%20an%20error%20message '"></script> | |
| OLD | NEW |