WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
24506
Geolocation in Safari differs from the spec, no Coordinates attribute on Position
https://bugs.webkit.org/show_bug.cgi?id=24506
Summary
Geolocation in Safari differs from the spec, no Coordinates attribute on Posi...
Greg Bolsinga
Reported
2009-03-10 18:56:06 PDT
The spec at
http://dev.w3.org/geo/api/spec-source.html
specifies that there should be a Coordinates attribute (coords) on the Position interface, which encapsulates lat, long, altitude, accuracy, etc. But our version doesn't have the Coordinates attribute. In our implementation, lat, long, accuracy, etc are attributes on Position. From the spec: "The Position interface is the container for the geolocation information returned by this API. This version of the specification allows one attribute of type Coordinates and a timestamp. Future versions of the API may allow additional attributes that provide other information about this position (e.g. street addresses). interface Position { readonly attribute Coordinates coords; readonly attribute DOMTimeStamp timestamp; }; The coords attribute contains a set of geographic coordinates together with their associated accuracy, as well as a set of other optional attributes such as altitude and speed. The timestamp attribute represents the time when the Position object was acquired and is represented as a DOMTimeStamp [DOMTIMESTAMP]. Coordinates interface interface Coordinates { readonly attribute double latitude; readonly attribute double longitude; readonly attribute double altitude; readonly attribute double accuracy; readonly attribute double altitudeAccuracy; readonly attribute double heading; readonly attribute double speed; }; "
Attachments
This patch implements the needed changes
(24.04 KB, patch)
2009-03-10 21:36 PDT
,
Greg Bolsinga
no flags
Details
Formatted Diff
Diff
Updated patch includes maximumAge in PositionOptions
(27.96 KB, patch)
2009-03-11 14:44 PDT
,
Greg Bolsinga
no flags
Details
Formatted Diff
Diff
forgot to update ChangeLog file
(28.25 KB, patch)
2009-03-11 14:47 PDT
,
Greg Bolsinga
koivisto
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Greg Bolsinga
Comment 1
2009-03-10 18:56:42 PDT
<
rdar://problem/6656491
>
Greg Bolsinga
Comment 2
2009-03-10 21:36:47 PDT
Created
attachment 28462
[details]
This patch implements the needed changes This add a Coordinates method to the Position in Geolocation.
Greg Bolsinga
Comment 3
2009-03-11 13:53:52 PDT
It is also missing PositionOptions.maximumAge.
Greg Bolsinga
Comment 4
2009-03-11 14:44:41 PDT
Created
attachment 28493
[details]
Updated patch includes maximumAge in PositionOptions Updated to include maximumAge.
Greg Bolsinga
Comment 5
2009-03-11 14:47:10 PDT
Created
attachment 28494
[details]
forgot to update ChangeLog file
Antti Koivisto
Comment 6
2009-03-12 13:57:26 PDT
Comment on
attachment 28494
[details]
forgot to update ChangeLog file r=me, looks good. Geolocation related sources would probably deserve a subdirectory of their own at some point.
Greg Bolsinga
Comment 7
2009-03-12 14:21:55 PDT
bolsinga:WebKit bolsinga$ svn commit Sending WebCore/ChangeLog Sending WebCore/DerivedSources.make Sending WebCore/GNUmakefile.am Sending WebCore/WebCore.pro Sending WebCore/WebCore.scons Sending WebCore/WebCore.vcproj/WebCore.vcproj Sending WebCore/WebCore.xcodeproj/project.pbxproj Sending WebCore/WebCoreSources.bkl Sending WebCore/bindings/js/JSGeolocationCustom.cpp Adding WebCore/page/Coordinates.cpp Adding WebCore/page/Coordinates.h Adding WebCore/page/Coordinates.idl Sending WebCore/page/Geoposition.cpp Sending WebCore/page/Geoposition.h Sending WebCore/page/Geoposition.idl Sending WebCore/page/PositionOptions.h Sending WebCore/platform/mac/GeolocationServiceMac.mm Transmitting file data ................. Committed revision 41650.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug