blob: 8c4a9d82d6614b79550cee18b30c5bbaaa33918c [file] [log] [blame]
[email protected]5a4d0fa2010-06-04 09:56:501<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2<html>
3<head>
tkentc5e88f02017-02-06 22:47:314<script src="../resources/js-test.js"></script>
[email protected]5a4d0fa2010-06-04 09:56:505</head>
6<body>
tkent98122ee2017-02-02 07:38:517<script>
8description("Tests that when a Geolocation request is made from a remote frame, and the JavaScript call chain starts from that remote frame, callbacks are made as usual.");
9
10function onIframeReady() {
11 // Make request from remote frame, with call chain starting here
12 window.setTimeout(function() {
13 iframe.contentWindow.navigator.geolocation.getCurrentPosition(function() {
14 testPassed('Success callback invoked');
15 finishJSTest();
16 }, function() {
17 testFailed('Error callback invoked unexpectedly');
18 finishJSTest();
Maxim Kolosovskiy2291dbc2017-12-08 10:48:5419 });
tkent98122ee2017-02-02 07:38:5120 }, 0);
21}
22
23var iframe = document.createElement('iframe');
24iframe.src = 'resources/callback-to-remote-context-inner.html';
25document.body.appendChild(iframe);
26
27window.jsTestIsAsync = true;
28</script>
[email protected]5a4d0fa2010-06-04 09:56:5029</body>
30</html>