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