OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="/js-test-resources/js-test-pre.js"></script> | 3 <script src="/js-test-resources/js-test-pre.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <iframe src="http://localhost:8000/" style=""></iframe> | 6 <iframe src="http://localhost:8000/" style=""></iframe> |
7 <pre id="console"></pre> | 7 <pre id="console"></pre> |
8 <script> | 8 <script> |
9 window.jsTestIsAsync = true; | 9 window.jsTestIsAsync = true; |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 window.onload = function() { | 27 window.onload = function() { |
28 __proto__ = targetWindow; | 28 __proto__ = targetWindow; |
29 | 29 |
30 shouldThrow('targetWindow.setTimeout(callback, 0, this);', '"SecurityError
: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from accessing a cross
-origin frame."'); | 30 shouldThrow('targetWindow.setTimeout(callback, 0, this);', '"SecurityError
: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from accessing a cross
-origin frame."'); |
31 shouldThrow('setTimeout.call(targetWindow, callback, 0, this);', '"Securit
yError: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from accessing a
cross-origin frame."'); | 31 shouldThrow('setTimeout.call(targetWindow, callback, 0, this);', '"Securit
yError: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from accessing a
cross-origin frame."'); |
32 shouldThrow('originalSetTimeout.call(targetWindow, callback, 0, this);', '
"SecurityError: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from acc
essing a cross-origin frame."'); | 32 shouldThrow('originalSetTimeout.call(targetWindow, callback, 0, this);', '
"SecurityError: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from acc
essing a cross-origin frame."'); |
33 | 33 |
34 originalSetTimeout(check, 10); | 34 originalSetTimeout(check, 10); |
35 } | 35 } |
36 </script> | 36 </script> |
37 <script src="/js-test-resources/js-test-post.js"></script> | |
38 </body> | 37 </body> |
39 </html> | 38 </html> |
OLD | NEW |