Emulate Geolocation Coordinates

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Emulate Geolocation Coordinates

Postby KristinaKoeva » Tue Jan 06, 2015 11:58 am

Hey all,

Basically I am trying to intercept a JavaScript
Code: Select all
navigator.geolocation.getCurrentPosition()
call and return custom data. I saw that there is a cef_geolocation_handler_t but it looks like it doesn't support such functionality.
So is there a way to achieve this ?

Thank you in advance
KristinaKoeva
Newbie
 
Posts: 1
Joined: Tue Jan 06, 2015 11:37 am

Re: Emulate Geolocation Coordinates

Postby magreenblatt » Tue Jan 06, 2015 9:40 pm

You can override the prototype in JavaScript and implement it however you like.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 50 guests