blob: 5043beff34f34fab5f8fb3dab58683f4aaad18bc [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("Tests that when a Geolocation request is made from a remote frame, and that frame's script context goes away before the Geolocation callback is made, the callback is not made. If the callback is attempted, a crash will occur.");
function onFirstIframeLoaded() {
iframe.src = 'resources/callback-to-deleted-context-inner2.html';
}
function onSecondIframeLoaded() {
window.setTimeout(function() {
testFailed('No callbacks invoked');
finishJSTest();
}, 500);
}
var iframe = document.createElement('iframe');
iframe.src = 'resources/callback-to-deleted-context-inner1.html';
document.body.appendChild(iframe);
window.jsTestIsAsync = true;
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>