Closed Bug 530124 Opened 15 years ago Closed 15 years ago

Geolocation API not working

Categories

(Core :: DOM: Geolocation, defect)

1.9.1 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: pmviva, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5

I have the following page fragment for testing the Geolocation API in Firefox 3.5.5 and apparently is not working under Windows XP, the very same  page fragment does work under Firefox 3.5.5 in Ubuntu Karmic Koala (GNU / Linux):

<html>
	<head>
		<title>Geolocation API tutorial</title>
		<script language="javascript" type="text/javascript">
			function showPositionCallback(position) {
				alert("Position: " + position.coords.latitude + ", " + position.coords.longitude);
			}
			if (!navigator.geolocation) {
				alert("Get a better browser!!!");
			} else {
				navigator.geolocation.getCurrentPosition(showPositionCallback);
			} 
		</script>
	</head>
	<body>
		<h1>Geolocation API tutorial</h1>
	</body>
</html>

It displays the Geolocation bar asking if I want to share my location, when I click on the Share Info button it does not display the alert message with the geolocation information.

If I check the "Rembember for this site" checkbox and click in either of the buttons "Share my location", "Do not share my location" the bar does not dissapear until I uncheck the checkbox.

Reproducible: Always

Steps to Reproduce:
1. Access the webpage I attached in the details section
2. Check the "Remember for this site" checkbox
2. Click the "Share my location" button
Actual Results:  
It does not display the alert message with the geolocation information and also the geolocation bar does not dissapear.

Expected Results:  
It should display the alert with the geolocation information and the geolocation bar should dissapear remembering my decision.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.6pre) Gecko/20091118 Shiretoko/3.5.6pre

This works fine for me. I see the alert with the coordinates.
Component: General → Geolocation
Product: Firefox → Core
QA Contact: general → geolocation
Version: unspecified → 1.9.1 Branch
Pablo, depending on where you are in the world, Firefox may or may not have a location.  If you like, you can set the preference "geo.wifi.logging.enabled" to true, and email me your javascript console log after trying your geolocation page again.  This log will contain a information that we send to the location provider and might help explain why you are not getting a location.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.