1 description("Tests that when a Geolocation request is made from a remote frame, callbacks are made as usual.");
3 function onIframeReady() {
4 // Make request from remote frame
5 iframe.contentWindow.navigator.geolocation.getCurrentPosition(function() {
6 testPassed('Success callback invoked');
9 testFailed('Error callback invoked unexpectedly');
14 var iframe = document.createElement('iframe');
15 iframe.src = 'resources/callback-to-remote-context-inner.html';
16 document.body.appendChild(iframe);
18 window.jsTestIsAsync = true;