Closed Bug 452566 Opened 16 years ago Closed 16 years ago

navigator.geolocation optional parameters on getCurrentPosition and watchPosition are not optional

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: divinegod, Assigned: smaug)

Details

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a2pre) Gecko/20080827020629 Minefield/3.1a2pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a2pre) Gecko/20080827020629 Minefield/3.1a2pre

When trying to use the navigator.geolocation features the spec as given by w3c is not implemented correctly.

navigator.geolocation.getCurrentPosition takes three parameters, two of which are optional in the spec, when using them in firefox, they are not optional.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Status: UNCONFIRMED → NEW
Ever confirmed: true
A minimal testcase would be great here.
Attached patch untested patch (obsolete) — Splinter Review
now I need to figure out how to use geolocation :)
Assignee: nobody → Olli.Pettay
Attached patch with testsSplinter Review
Attachment #335854 - Attachment is obsolete: true
Attachment #335893 - Flags: superreview?(jst)
Attachment #335893 - Flags: review?(doug.turner)
Comment on attachment 335893 [details] [diff] [review]
with tests

didn't know about that idl flag.  cool.

could you rename "test_geolocation_api" to "test_optional_api_params"?
Attachment #335893 - Flags: review?(doug.turner) → review+
Attachment #335893 - Flags: superreview?(jst) → superreview+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: