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: https://github.com/brave/brave-browser/issues/20122.
navigator.connection === undefined
"connection" in window.navigator === false