OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="resources/cross-frame-access.js"></script> | 3 <script src="resources/cross-frame-access.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <iframe id="aFrame"></iframe> | 6 <iframe id="aFrame" name="aFrame"></iframe> |
7 <pre id="console"></pre> | 7 <pre id="console"></pre> |
8 <script> | 8 <script> |
9 var url = "HTTP://127.0.0.1:8000/security/resources/cross-frame-iframe.html"
; | 9 var url = "HTTP://127.0.0.1:8000/security/resources/cross-frame-iframe.html"
; |
10 var iframeId ="aFrame"; | 10 var iframeId ="aFrame"; |
11 var passMessage = "PASS: Protocol name compare is case insensitive!"; | 11 var passMessage = "PASS: Protocol name compare is case insensitive!"; |
12 var failMessage = "FAIL: Protocol name compare is case sensitive, should be
case insensitive."; | 12 var failMessage = "FAIL: Protocol name compare is case sensitive, should be
case insensitive."; |
13 canAccessFrame(url, iframeId, passMessage, failMessage); | 13 canAccessFrame(url, iframeId, passMessage, failMessage); |
14 </script> | 14 </script> |
15 </body> | 15 </body> |
16 </html> | 16 </html> |
OLD | NEW |