<!DOCTYPE html>
<p>
This page loads an empty cross-site iframe, and exposes a method to navigate it.
</p>
<script>
function getFrameDocument() {
return window.frames['iframe'].contentWindow.document;
}
function notifyLoaded() {
window.domAutomationController.send(true);
}
function navigateSubframe(url) {
var iframe = document.createElement('iframe');
iframe.onload = notifyLoaded;
iframe.src = url;
document.body.appendChild(iframe);
}
</script>