Page MenuHomePhabricator

Samsung Internet's desktop mode getting redirected to mobile site
Closed, DeclinedPublic

Assigned To
None
Authored By
MaxSem
Feb 20 2017, 7:06 PM
Referenced Files
F5726920: Samsung browser 4
Feb 20 2017, 7:38 PM
F5726900: Samsung browser 1
Feb 20 2017, 7:38 PM
F5726906: Samsung browser 2
Feb 20 2017, 7:38 PM
F5726916: Samsung browser 3
Feb 20 2017, 7:38 PM
F5726511: noname
Feb 20 2017, 7:06 PM
F5726515: noname (1)
Feb 20 2017, 7:06 PM

Description

Received these pics from Samsung via Wikimedia Russia:

noname (580×725 px, 64 KB)

noname (1) (576×790 px, 130 KB)

That's this app

A similar measure was taken in https://github.com/wikimedia/puppet/commit/eaeabd74b42370f7dcffabcdf17d6c6711866bbc but it wasn't sufficient.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Interesting, my Samsung Galaxy A7 (2016)'s bundled Samsung Internet correctly handles 'request desktop version'. Maybe it's for Google Play version only or my version is handling UA correctly.

DesktopMobile
UAF5726900F5726906
BrowserF5726916F5726920

I just put "ko.wikipedia.org" in the address bar.

ema triaged this task as Medium priority.Feb 22 2017, 2:51 PM

Ran some hive queries on webrequest data with @ema, our understanding is that the "Mobile" keyword in the UA should indicate that the TV is asking the mobile version of the website, meanwhile the other use cases would need the desktop version.

A couple of queries are showing that we see cases in which the "Mobile" keyword is not present but the mobile website is served:

select count(*) as reqs, user_agent, uri_host from webrequest where webrequest_source="text" and year=2017 AND month=2 AND day=22 and
user_agent like '%SamsungBrowser%' and not (user_agent like '%Mobile%') and uri_host like '%.m.%' and http_status=200 group by user_agent,uri_host order by reqs DESC limit 100;

[..]
[redacted]    Mozilla/5.0 (Linux; Android 5.0.2; SAMSUNG SM-T705 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/3.0 Chrome/38.0.2125.102 Safari/537.36   en.m.wikipedia.org

There are also use cases that follows the convention:

select count(*) as reqs, user_agent, uri_host from webrequest where webrequest_source="text" and year=2017 AND month=2 AND day=22 and
user_agent like '%SamsungBrowser%Mobile%' and uri_host like '%.m.%' and http_status=200 group by user_agent,uri_host order by reqs DESC limit 100;

[..]
[redacted]   Mozilla/5.0 (Linux; Android 5.0.1; SAMSUNG SCH-I545 4G Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36    en.m.wikipedia.org

Both cases apply to multiple domains, I didn't add all of them to limit the data reported.

BBlack subscribed.

Reopen or make a new ticket if this is still an issue for a real user, it's too-stale with no movement as-is.