blob: 90929ca65e0afd67e2769a567731add3c61b3784 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script>
function makeGeolocationRequest() {
var parent = window.parent;
// Make request from remote frame, this frame will be gone by the time the Geolocation
// object attempts to invoke the callback.
window.parent.navigator.geolocation.getCurrentPosition(function() {
parent.testPassed('Success callback invoked');
parent.finishJSTest();
}, function() {
parent.testFailed('Error callback invoked unexpectedly');
parent.finishJSTest();
});
}
</script>
</head>
<body onload="window.parent.onFirstIframeLoaded()", onunload="makeGeolocationRequest()">
<p>This frame should be replaced before the test ends</p>
</body>
</html>