mozilla/r2d2b2g — pull request #436 by rpl (2013-04-17 19:03:06+00:00)
Title: FIX: geolocation setup sequence

Currently we've 3 sub-issues:
- on nightly, 23.0a1 (2013-04-16), Ci.nsIDOMGeoGeolocation doesn't exist
(I'm not sure if it could be a temporary problem or a permanent change for
the future releases)
- if firefox doesn't send a geolocation response, click the button doesn't open
the geolocation dialog and we can't set a custom location
- our "muted actor due to unsolicited event" workaround doesn't work
(packets blocked in queue until another unsolicited event will be sent,
e.g. appUpdateRequest)

This pull request introduce small changes needed to get simulated geolocation
to work again:
- register geolocation button click listener on start
to be able to use custom location even if current location response
will never be received
- remove unsolicited event workaround
- new geolocation setup workflow
geolocationReady (FIREFOX CLIENT -> B2G ACTOR)
r2d2b2g:geolocation-ready (B2G ACTOR -> B2G SHELL)
r2d2b2g:geolocation-update (B2G SHELL -> B2G ACTOR)
geolocationRequest (B2G ACTOR -> FIREFOX CLIENT)
geolocationResponse (FIREFOX CLIENT -> B2G ACTOR)