[webapp-container] user agent override param does not work
Bug #1393466 reported by
Alexandre Abreu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webbrowser-app |
Fix Released
|
High
|
Alexandre Abreu | ||
webbrowser-app (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
One can specify using a command line option what the user agent for a given container "session" is. It does not currently works for the first http request. There is a race in the ubuntu webview component between the time the webcontext is created (with the default UA), the time the URL is set (and picked up by Oxide), and the time the new user agent is pull from the webview override using getUserAgent(),
Related branches
lp:~abreu-alexandre/webbrowser-app/user-agent-override-fails
- Olivier Tilloy: Approve
- PS Jenkins bot: Needs Fixing (continuous-integration)
-
Diff: 125 lines (+67/-6)4 files modifiedsrc/Ubuntu/Web/UbuntuWebContext.qml (+4/-1)
src/app/webcontainer/WebViewImplOxide.qml (+9/-5)
tests/autopilot/webapp_container/tests/fake_servers.py (+19/-0)
tests/autopilot/webapp_container/tests/test_user_agent.py (+35/-0)
Changed in webbrowser-app: | |
assignee: | nobody → Alexandre Abreu (abreu-alexandre) |
status: | New → In Progress |
importance: | Undecided → High |
Changed in webbrowser-app: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
This bug was fixed in the package webbrowser-app - 0.23+15. 04.20141208- 0ubuntu1
--------------- 04.20141208- 0ubuntu1) vivid; urgency=low
webbrowser-app (0.23+15.
[ Ubuntu daily release ]
* New rebuild forced
[ Alexandre Abreu ]
* Fix the user agent override mechanism (and the race during the first
http request between the webview/webcontext creation and the
getUseragent call), (LP: #1393466)
[ Olivier Tilloy ]
* Updated bzr ignore rules.
-- Ubuntu daily release <email address hidden> Mon, 08 Dec 2014 21:59:22 +0000