blob: 7a5827b97a238758e2165165a839d97f8f6d2333 [file]
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;