| 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 <p>This test currently fails because we check the port and protocol even if docu
    ment.domain is explicitly set (rdar://problem/5366437).</p>  |   6 <p>This test currently fails because we check the port and protocol even if docu
    ment.domain is explicitly set (rdar://problem/5366437).</p>  | 
|   7 <iframe id="aFrame" name="aFrame"></iframe> |   7 <iframe id="aFrame"></iframe> | 
|   8 <pre id="console"></pre> |   8 <pre id="console"></pre> | 
|   9 <script> |   9 <script> | 
|  10     // Explicitly set the domain. |  10     // Explicitly set the domain. | 
|  11     document.domain = "127.0.0.1"; |  11     document.domain = "127.0.0.1"; | 
|  12  |  12  | 
|  13     var url = "https://127.0.0.1:8443/security/resources/cross-frame-iframe-with
    -explicit-domain-set.html"; |  13     var url = "https://127.0.0.1:8443/security/resources/cross-frame-iframe-with
    -explicit-domain-set.html"; | 
|  14     var iframeId ="aFrame"; |  14     var iframeId ="aFrame"; | 
|  15     var passMessage = "PASS: Cross frame access to https from http, after explic
    itly setting document.domain, was denied."; |  15     var passMessage = "PASS: Cross frame access to https from http, after explic
    itly setting document.domain, was denied."; | 
|  16     var failMessage = "Fail: Cross frame access to https from http, after explic
    itly setting document.domain, was allowed."; |  16     var failMessage = "Fail: Cross frame access to https from http, after explic
    itly setting document.domain, was allowed."; | 
|  17     cannotAccessFrame(url, iframeId, passMessage, failMessage); |  17     cannotAccessFrame(url, iframeId, passMessage, failMessage); | 
|  18 </script> |  18 </script> | 
|  19 </body> |  19 </body> | 
|  20 </html> |  20 </html> | 
| OLD | NEW |