StrandedKitty / streets-gl

🗺 OpenStreetMap 3D renderer powered by WebGL2
http://streets.gl
MIT License
598 stars 43 forks source link

Map does not render on Tor Browser #181

Open contrapunctus-1 opened 3 months ago

contrapunctus-1 commented 3 months ago

Describe the bug

  1. Open https://streets.gl/ in Tor Browser.
  2. The UI is visible, but the map is not.

Screenshots Screenshot from 2024-03-21 01-28-14

System information

Here's a log from the inspector. streets.gl_Archive [24-03-21 01-12-43].har.zip

TimGoodwyn commented 3 months ago

I get the same behaviour on plain Firefox 123.0.1 on Mac OS 12.6.5

applemayexist commented 3 months ago

I can reproduce on Tor Browser 13.0.13, but I would think that this is a feature, not a bug. WebGL can be used to fingerprint your device, and so Tor is likely disabling it.

contrapunctus-1 commented 3 months ago

FWIW Tor Browser is able to render demo.f4map.com and maps.jawg.io (both of which have 3D buildings) just fine.

This looks relevant - https://gitlab.torproject.org/legacy/trac/-/issues/16005

applemayexist commented 3 months ago

You're right, it turns out WebGL is enabled, but only WebGL 1.0. Visiting about:support shows a large list of enabled WebGL 1.0 extensions, whereas WebGL 2.0 is empty. And sure enough, streets.gl uses WebGL 2.0. Unfortunately I wasn't able to find anything about enabling WebGL 2.0 on Tor.