DescriptionIssue 5347 - Add geckoInfo.deviceForm for phone and tablet
Rationale: info.application and info.applicationVersion are available only later, after a lot of code has already been initialized. We need this info sooner so we avoid running a lot of unnecessary code. Besides, the application name "Fennec" doesn't really tell us if it's on mobile or tablet, and we might want to do different things based on the device form factor, either now or in the future.
I've added a info.deviceForm property that can have the values "unknown" (default), "phone", or "tablet".
The parsing of the UA string is based on the specification here:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox
The name and possible values of the new property are inspired by this:
https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-deployment-deviceform
Patch Set 1 #
MessagesTotal messages: 7
|