Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1008 by [email protected]: [geolocation] getCurrentPosition() Does not return to error function
http://code.google.com/p/gears/issues/detail?id=1008

What steps will reproduce the problem?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>#placdholderstart#title#></title>
<script type="text/javascript"
src="http://code.google.com/apis/gears/gears_init.js";></script>
<script type="text/javascript">
var geo = google.gears.factory.create('beta.geolocation');

function updatePosition(position) {
alert('Current lat/lon is: ' + position.latitude + ',' + position.longitude);
}

function handleError(positionError) {
  alert('Attempt to get location failed: ' + positionError.message);
}

geo.getCurrentPosition(updatePosition, handleError);
</script>
</head>
<body>
</body>
</html>

What is the expected output? What do you see instead?

Expected:
Attempt to get location failed: (?REASON?)

Actual: void, nothing at all

What version of the product are you using? On what operating system?

OSX 10.5.8 PPC
Firefox 3.6
Gears 0.5.36.0

Please provide any additional information below.

I press deny as I am testing and receive no feedback.
Running from local.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to