Detecting devtools device emulation

678 views
Skip to first unread message

Geoff Corey

unread,
Oct 29, 2014, 3:55:22 PM10/29/14
to google-chrome-...@googlegroups.com
The goal is to make sure someone is not spoofing the browser with devtools.

Is there a way to determine if devtools emulation for geolocation is enabled via javascript?

Philip Rogers

unread,
Oct 29, 2014, 4:30:13 PM10/29/14
to google-chrome-...@googlegroups.com
I don't think so.

Can you describe why you would to detect this? Geolocation is trivial to spoof at many levels (e.g., using Android's developer tools) so I hope it's not something you're depending on.

Paul Irish

unread,
Oct 29, 2014, 4:33:27 PM10/29/14
to Google Chrome Developer Tools

He's a content provider!! He wants to lock it down!!!

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/0fb690b8-4b40-434a-9d29-84cefdc297a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Geoff Corey

unread,
Oct 29, 2014, 4:48:15 PM10/29/14
to google-chrome-...@googlegroups.com
Yes I am well aware how easy it is to spoof.  Trying to keep honest people honest.   If we can detect that the chrome browser is in emulation mode that would help.

jasan singh

unread,
Nov 1, 2016, 1:16:15 AM11/1/16
to Google Chrome Developer Tools
Geoff,

It likely you already solved your issue, but the way I accounted for chrome dev tools geolocation emulation was to disregard any geo data which has lower accuracy than 40m. this works because dev tools attached accuracy of 150m with their emulation. 
Reply all
Reply to author
Forward
0 new messages