Intent to unship: dom.netinfo.enabled on Android

68 views
Skip to first unread message

Karl Dubost

unread,
Jun 8, 2021, 6:57:59 AM6/8/21
to moz-dev-platform
In Bug 1637922 [1], I’m setting dom.netinfo.enabled to false
A patch [6] has already been submitted.

# Why?
Currently `navigator.connection` returns on Android a `NetworkInformation` object with `type` and `ontypechange`.
On Desktop, `navigator.connection` returns `undefined`

There is currently an instance of a website failing [2] in Firefox Android because it depends on an up to date version of the NetworkInformation object.

# Standard Position
There is a specification [3] pushed through the WICG.
Mozilla standard position [4] defines this specification as harmful.

# Implementation Status across the Web
As of today [5],
Blink browsers on Android and desktop OSes implement NetworkInformation.
Safari on macOS and iOS do NOT implement NetworkInformation

# Compatibility Risks?

There is a possibility that some sites still depends for Firefox on Android on this value. We will know soon enough in Nightly when bug reports are reported through webcompat. If it was happening, we would need probably to flip again the preference and go through site interventions for the site which depends on `navigator.connection`


[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1637922
[2]: https://webcompat.com/issues/67436
[3]: https://wicg.github.io/netinfo/
[4]: https://github.com/mozilla/standards-positions/issues/117#issuecomment-613777978
[5]: https://caniuse.com/mdn-api_navigator_connection
[6]: https://phabricator.services.mozilla.com/D117126

--
Karl Dubost, mozilla 💡 Webcompat
http://www.la-grange.net/karl/moz





Reply all
Reply to author
Forward
0 new messages