Bug 35666

Summary: [Gtk]: assertion triggered when geolocation getCurrentPosition without an option argument.
Product: WebKit Reporter: arno. <a.renevier>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
patch v1 none

Description arno. 2010-03-03 03:50:51 PST
Hi,

when getCurrentPosition is called without an option argument (or with an object that don't have a timeout property), PositionOptions does not have a timeout (m_hasTimeout is false).

Currently in GeolocationServiceGtk::startUpdating, we have following code:
timeout = options->timeout();
without checking if options->hasTimeout().

We should check if options has a timeout before trying to get its value.
Comment 1 arno. 2010-03-03 03:54:01 PST
Created attachment 49897 [details]
patch v1
Comment 2 Gustavo Noronha (kov) 2010-03-03 05:14:00 PST
Comment on attachment 49897 [details]
patch v1

Looks sane, from looking at the PositionOptions code.
Comment 3 WebKit Commit Bot 2010-03-03 05:30:55 PST
Comment on attachment 49897 [details]
patch v1

Clearing flags on attachment: 49897

Committed r55459: <http://trac.webkit.org/changeset/55459>
Comment 4 WebKit Commit Bot 2010-03-03 05:30:59 PST
All reviewed patches have been landed.  Closing bug.