Network information

This file contains a wrapper for NetworkInformation.

NetworkInformation allows sites to learn about local network conditions by querying navigator.connection. Fingerprinters can misuse the feature. Long-term observers may learn about traveling patterns through observation of repeated values (for example a network at work, home, travel, etc.).

We implement the same protection as Brave:

navigator.connection === undefined
"connection" in window.navigator === false