Nit: Firefox code conventionally formats such statements as:

    let geolocation = Cc["@mozilla.org/geolocation;1"].
                      getService(Ci.nsIDOMGeoGeolocation);