1description("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.");
2
3function onFirstIframeLoaded() {
4    iframe.src = 'resources/callback-to-deleted-context-inner2.html';
5}
6
7function onSecondIframeLoaded() {
8    // Wait for the callbacks to be invoked
9    window.setTimeout(function() {
10        testPassed('No callbacks invoked');
11        finishJSTest();
12    }, 100);
13}
14
15var iframe = document.createElement('iframe');
16iframe.src = 'resources/callback-to-deleted-context-inner1.html';
17document.body.appendChild(iframe);
18
19window.jsTestIsAsync = true;
20window.successfullyParsed = true;
21