[webapp-container] Can't decouple "like Android" and "Mobile" in user agent

Bug #1591303 reported by Michael Terry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
webbrowser-app (Ubuntu)
New
Undecided
Unassigned

Bug Description

Here's my use case:

1. I have a reddit webapp using webapp-container.
2. I want to avoid reddit's popup box suggesting I install the Android app (reddit does this based on the presence of the Android user agent keyword).
3. I want to be convergent and have reddit feed my webapp mobile or desktop content as appropriate (reddit will do this for us based on the presence of the Mobile user agent keyword).

As of today, #2 makes me want to pass a --user-agent-string without the "Android" keyword. But #3 makes me want to allow webapp-container to use its default dynamic user-agent logic, inserting Mobile or not as needed.

As a soft #4, I'd also like to have the various versions in the user agent string be accurate. Which is hard to do when passing a manual --user-agent-string.

What would be the best solution to my problem?

My simple proposal would be a new flag that says --no-android-user-agent or something like that. But that's a bit grossly named. Maybe --pure-user-agent or --native-user-agent or something, which would use a pure Ubuntu user agent without "Android".

Michael Terry (mterry)
summary: - [webapp-container] No way to allow dynamic user-agent content with
- --user-agent-string
+ [webapp-container] Can't decouple "like Android" and "Mobile" in user
+ agent
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.