[Webkit-unassigned] [Bug 46895] Implement mocks for client-based geolocation in chromium

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 22 09:45:10 PST 2010


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





--- Comment #3 from John Knottenbelt <jknotten at chromium.org>  2010-11-22 09:45:10 PST ---
>From https://bugs.webkit.org/attachment.cgi?id=74382&action=review, Darin Fisher asked:

> what prevents the GeolocationController object from being destroyed before the WebGeolocationController?
> how do you avoid memory errors in that case?
> 
> this seems error prone.

Thanks for reviewing so quickly.

The destructor of WebCore::GeolocationController calls WebCore::GeolocationClient::geolocationDestroyed() on it's client. This client interface will be implemented by a class called GeolocationClientProxy which will in turn call it's client's geolocationDestroyed() method - WebKit::WebGeolocationClient::geolocationDestroyed(). 

Implementers of the client should be aware that after geolocationDestroyed() has been invoked the WebGeolocationController pointer is invalid (and could set their WebGeolocationController member to 0 on receiving geolocationDestroyed()).

-- 
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