blob: 9e648b6ff9ec85e864d8db19e328255a797ecf1e [file] [log] [blame]
<!DOCTYPE html>
<script src="/js-test-resources/js-test.js"></script>
<script>
window.jsTestIsAsync = true;
window.callback = null;
function doCallback()
{
shouldBeUndefined(window.callback());
finishJSTest();
}
function registerCallback(cb)
{
window.callback = cb;
setTimeout(function() {
var iframe = document.querySelector('iframe');
iframe.onload = doCallback;
iframe.contentDocument.location.href = "about:blank";
}, 0);
}
</script>
<iframe src="resources/iframe-for-naked-global-object.html"></iframe>