| <script src="resources/cross-frame-access.js"></script> |
| <p>The child frame will get a function from the parent frame, set the document.domain property and then try to use the function. The function should still be able to access parent frame properties.</p> |
| window.thisIsTopFrame = true; |
| window.testFunction = function() |
| shouldBeTrue("canGet('window.location.href')"); |
| shouldBeTrue("window.thisIsTopFrame"); |
| <iframe src="resources/cross-frame-iframe-callback-explicit-domain-ALLOW.html" style=""></iframe> |