Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / cross-frame-access-protocol-explicit-domain.html
blob812f6e4a997ebabf9858d8d65d3d23db0b3e4488
1 <html>
2 <head>
3 <script src="resources/cross-frame-access.js"></script>
4 </head>
5 <body>
6 <p>This test currently fails because we check the port and protocol even if document.domain is explicitly set (rdar://problem/5366437).</p>
7 <iframe id="aFrame" name="aFrame"></iframe>
8 <pre id="console"></pre>
9 <script>
10 // Explicitly set the domain.
11 document.domain = "127.0.0.1";
13 var url = "https://127.0.0.1:8443/security/resources/cross-frame-iframe-with-explicit-domain-set.html";
14 var iframeId ="aFrame";
15 var passMessage = "PASS: Cross frame access to https from http, after explicitly setting document.domain, was denied.";
16 var failMessage = "Fail: Cross frame access to https from http, after explicitly setting document.domain, was allowed.";
17 cannotAccessFrame(url, iframeId, passMessage, failMessage);
18 </script>
19 </body>
20 </html>