OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../resources/testharness.js"></script> |
| 5 <script src="../resources/testharnessreport.js"></script> |
| 6 <script> |
| 7 testRunner.setAllowUniversalAccessFromFileURLs(false); |
| 8 testRunner.setAllowFileAccessFromFileURLs(false); |
| 9 |
| 10 var t = async_test('file: should be a unique-origin protocol for XHR purposes'); |
| 11 window.addEventListener('message', t.step_func(function(evt) { |
| 12 assert_equals(evt.data, 'NetworkError'); |
| 13 t.done(); |
| 14 })); |
| 15 </script> |
| 16 </head> |
| 17 <body> |
| 18 <iframe src="resources/cannot-read-self-from-file.html"></iframe> |
| 19 Documents loaded from file: shouldn't be able to access themselves via XHR. |
| 20 </body> |
| 21 </html> |
OLD | NEW |