3 <script src=
"resources/cross-frame-access.js"></script>
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>
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
);