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.js"></script> |
4 <script src="resources/cross-frame-access.js"></script> | 4 <script src="resources/cross-frame-access.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for-get
-test.html" style=""></iframe> | 7 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for-get
-test.html" style=""></iframe> |
8 <pre id="console"></pre> | 8 <pre id="console"></pre> |
9 <script> | 9 <script> |
10 | 10 |
11 window.jsTestIsAsync = true; | 11 window.jsTestIsAsync = true; |
12 window.targetWindow = frames[0]; | 12 window.targetWindow = frames[0]; |
13 | 13 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // - Tests for the Location object - | 59 // - Tests for the Location object - |
60 shouldThrow("window.location.toString.call(targetWindow.location)", '"Securi
tyError: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from accessing
a cross-origin frame."'); | 60 shouldThrow("window.location.toString.call(targetWindow.location)", '"Securi
tyError: Blocked a frame with origin \\"http://127.0.0.1:8000\\" from accessing
a cross-origin frame."'); |
61 | 61 |
62 // Work around DRT bug that causes subsequent tests to fail. | 62 // Work around DRT bug that causes subsequent tests to fail. |
63 window.stop(); | 63 window.stop(); |
64 finishJSTest(); | 64 finishJSTest(); |
65 } | 65 } |
66 </script> | 66 </script> |
67 </body> | 67 </body> |
68 </html> | 68 </html> |
OLD | NEW |