[Webkit-unassigned] [Bug 35191] [Gtk] use geoclue providers with don't provide update

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 23 22:19:23 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=35191


arno. <arno at renevier.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49322|0                           |1
        is obsolete|                            |
  Attachment #49357|                            |review?
               Flag|                            |




--- Comment #8 from arno. <arno at renevier.net>  2010-02-23 22:19:23 PST ---
Created an attachment (id=49357)
 --> (https://bugs.webkit.org/attachment.cgi?id=49357)
patch v1.3

(In reply to comment #7)
> (From update of attachment 49322 [details])
>  8         No new tests. (OOPS!)
> 
> You should state here that there's no testable behaviour change, (I assume
> there isn't because this depends on the system).

ok, here is an updated patch

> Also, you're not doing only
> what you claim in the changelog, in this patch. You're also making updating the
> location information async, which does sound like a good idea, but should be
> made into another patch. r- for that reason.

asynchronous reply is needed here. As explained in comment 1, if we return a
position synchronously from startUpdating, callback fonctions will not be
called. Currently (providers providing update only), position return is
asynchronous. If we use providers which don't provide updates, we need to get
position asynchronously (otherwise, geolocation simply won't work).

> Also, we had many crashes happen because the WebCore object goes away between
> an async call, and its callback returning, so passin 'this' here worries me:
> 
>  118     geoclue_position_get_position_async(m_geocluePosition,
> (GeocluePositionCallback)get_position, this);
> 
> Have you checked what the life cycle of the geolocation service object is, and
> if it will react well if its client goes away?

I've tested what happens when page is unloaded before position is available.
GeolocationService is destroyed and get_position is not called, and no crash
append.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list