GoogleChrome / GoogleChrome/lighthouse
add ability to accept geolocation permissions
- Dominant language
- JavaScript
- Stars
- 30.8k
- Forks
- 9.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 19
Description
Hi I'm using lighthouse for automatic page test, and I've encountered a problem. In our scene there're some pages requesting geolocation permission and send ajax requests with the geolocation params, however when testing these pages with lighthouse, the geolocation permission dialog won't close and even though I could configure it and save to the user-data-dir, I need to testing a bunch of pages and hope the process could be parallel, when sharing with the same user-data-dir, lighthouse won't launch multiple instances and instead open one and launch multiple pages, however the lighthouse audit need one instance for one page only and the share of chrome instance would make other pages hang waiting for the first page's job done, and finally a timeout error would be thrown.

I'm wondering if the geolocation permission could be set through chrome-flags or any config file? Thank you!
Contributor guide
Assessment
This issue has not been assessed yet.