After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 754089 - Use mobile user-agent on tablet
Use mobile user-agent on tablet
Status: RESOLVED NOTGNOME
Product: epiphany
Classification: Core
Component: General
3.16.x (obsolete)
Other Linux
: Normal enhancement
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-08-25 17:15 UTC by Bastien Nocera
Modified: 2015-09-23 13:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2015-08-25 17:15:12 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).
Comment 1 Michael Catanzaro 2015-09-22 23:37:44 UTC
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!
Comment 2 Bastien Nocera 2015-09-23 09:12:21 UTC
Filed as https://bugs.webkit.org/show_bug.cgi?id=149496