Page MenuHomePhabricator

[Bug] Nearby frequently cannot display places
Closed, DuplicatePublic

Description

Steps to reproduce

  1. Visit https://en.m.wikipedia.org/wiki/Special:Nearby?debug=true
  2. Allow location access

Expected results

A sweet list of articles nearby is shown.

Actual results

An error is shown, "Wikipedia Nearby can't figure out where you are... try again? Try an open area with a better signal.", and the following warning is printed to the console:

[Violation] Only request geolocation information in response to a user gesture. https://en.m.wikipedia.org/w/extensions/MobileFrontend/resources/mobile.nearby/Nearby.js?38c95
getCurrentPosition	@	Nearby.js?38c95:93
refresh	@	Nearby.js?38c95:265
Nearby	@	Nearby.js?38c95:32
refresh	@	nearby.js?0c69a:69
refreshCurrentLocation	@	nearby.js?0c69a:103
matchRoute	@	oojs-router.js?f0f4f:29
(anonymous)	@	oojs-router.js?f0f4f:94
each	@	load.php?debug=true&…version=09gt2zl:368
Router.checkRoute	@	oojs-router.js?f0f4f:93
(anonymous)	@	nearby.js?0c69a:115
mightThrow	@	load.php?debug=true&…ersion=09gt2zl:3583
process	@	load.php?debug=true&…ersion=09gt2zl:3651

Environments observed

Browser Version:

  • Chromium v64.0.3282.167 (Official Build) Built on Ubuntu , running on Ubuntu 17.10 (64-bit)
  • Firefox v58.0.2 (64-bit)

OS Version:

  • Ubuntu v17.10

Device Model:

  • Desktop

Device Language:

  • English