Other parts of MediaWiki besides MobileFrontend need the ability to detect device type, for example, for logging or skinning or enabling certain UI interactions. Let's move the DeviceDetection class from MobileFrontend into core so that we don't have to reinvent the wheel.
|Resolved||Jdlrobson||T29292 Skinning system improvement (tracking)|
|Resolved||None||T97968 Discuss mobile support in the mw skinning system for responsive skins|
|Declined||None||T162210 [EPIC] Upstream MobileFrontend components to core and other extensions (tracking)|
|Open||None||T100402 Core should have support for mobile detection and customization|
|Open||None||T249944 WikiEditor records all edits as platform = desktop in EventLogging|
|Open||None||T263501 Move DeviceDetection.php from MobileFrontend to core|
This would also be useful for some of the work we're doing to improve product analytics instrumentation. Reviews welcome on the change above from anyone interested in seeing this get done. I'll follow up with a change to MobileFrontend to use the functionality from core.
Change 680460 abandoned by Mholloway:
[mediawiki/core@master] Move device detection from MobileFrontend into core
Thanks Krinkle for the thoughts and DannyS712 for the review. I'm convinced we don't want this as is for the reasons mentioned, so I think I'll abandon this for the time being and put some thought into a more focused approach for EL based on the ua-parser library, as suggested.