blob: fbe77de6547d87b8f0f389a3d6dd0f601586028f [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, callbacks are made as usual.");
function onIframeReady() {
// Make request from remote frame
iframe.contentWindow.navigator.geolocation.getCurrentPosition(function() {
testPassed('Success callback invoked');
finishJSTest();
}, function() {
testFailed('Error callback invoked unexpectedly');
finishJSTest();
});
}
var iframe = document.createElement('iframe');
iframe.src = 'resources/callback-to-remote-context-inner.html';
document.body.appendChild(iframe);
window.jsTestIsAsync = true;
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>