GNOME Bugzilla – Bug 754089
Use mobile user-agent on tablet
Last modified: 2015-09-23 13:17:04 UTC
$ gdbus introspect --system --dest org.freedesktop.hostname1 --object-path /org/freedesktop/hostname1 | grep 'Chassis ' readonly s Chassis = 'laptop'; Using that data, we should switch to using a mobile user-agent when "tablet" is detected ("handset" could also switch to that).
OK. Though I think this should be handled by WebKit. The code lives in Source/WebCore/platform/gtk/UserAgentGtk.cpp, though we'd have to think about how to guarantee this check completes before sending any HTTP requests. There is also the disadvantage that systems without systemd would not get the mobile UA and would have separate bugs, but I think that's outweighed by the benefits. It would be good to pin down what precisely the mobile user agent should be. Do you mind moving this to bugzilla.webkit.org? Thanks!
Filed as https://bugs.webkit.org/show_bug.cgi?id=149496