Current time: 12-16-2018, 06:36 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Allow Location Dialog In Chrome
01-12-2016, 01:36 AM
Post: #1
Allow Location Dialog In Chrome
Some pages of a website I use recently switched to geolocating. This change caused the "Website wants to: Know your location" Chrome dialog. This causes the page to render incorrectly since the popup is not interacted with.

How can I tell WPT to always allow location?

I am using:
AMI: IE11/Chrome/Firefox/Safari (2014, wptdriver only) - ami-561cb13e.
Chrome: Version 47.0.2526.106 m


I attempted 2 fixes, and neither worked:
1. Manually confirm the dialog, but it reappears on next run.
2. "Allow all sites to track your physical location" in Chrome settings. This also did not stop the dialog from appearing.


Attached File(s) Image(s)
   
Find all posts by this user
Quote this message in a reply
03-18-2016, 05:54 AM
Post: #2
RE: Allow Location Dialog In Chrome
I can make WPT load a different chrome profile as a workaround, but I am still looking for a simpler solution if anyone has one. Thanks.
Find all posts by this user
Quote this message in a reply
03-21-2018, 12:08 AM
Post: #3
RE: Allow Location Dialog In Chrome
I am running into this same issue just running tests on the public webpagetest.org. Is there a script or request that can be blocked to prevent this popup from coming up on mobile tests? It's throwing the speed index metrics all out of whack because it's recognizing the last frame as the visual completion of the page, which is the location dialog overlayed a grayed out page.
Find all posts by this user
Quote this message in a reply
03-22-2018, 01:19 AM
Post: #4
RE: Allow Location Dialog In Chrome
Do you have a test example? At least for Chrome the geo-location prompt should be disabled. Here is a test for example: https://www.webpagetest.org/result/18032...98e42a2b3/
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2018, 03:36 AM
Post: #5
RE: Allow Location Dialog In Chrome
(03-22-2018 01:19 AM)pmeenan Wrote:  Do you have a test example? At least for Chrome the geo-location prompt should be disabled. Here is a test for example: https://www.webpagetest.org/result/18032...98e42a2b3/

https://www.webpagetest.org/result/18041...af7a2c8a0/

If you open up the Filmstrip View, you can see how the last frame is throwing off the visual completion % for the whole load.
Find all posts by this user
Quote this message in a reply
04-18-2018, 05:50 AM
Post: #6
RE: Allow Location Dialog In Chrome
Ahh, thanks - looks like the prefs aren't being populated on the physical devices, just the desktop browser. I'll take a look and see if it can be done.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)