[webapp-container] UA Override from webapp-properies.json file is not set

Bug #1408064 reported by Alexandre Abreu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Unassigned
webbrowser-app
Fix Released
High
Alexandre Abreu
webbrowser-app (Ubuntu)
Fix Released
Undecided
Unassigned
webbrowser-app (Ubuntu RTM)
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

 Webapp has the option to either specify a command line option to have a specific UA overriding the default or have a local webapp-properties.json file that defines the UA override such as:

{
    "name": "MyWebapp",
    "includes":["http://user-agent.me/*"],
    "domain":"user-agent.me",
    "homepage":"http://user-agent.me/",
    "user-agent-override": "Mozilla/5.0 custom-user-agent-string (unlike AnyOtheBrowser)"
}

This currently does work.

[Test Case]

- from qtcreator, create a webapp,
- update the Exec line from the desktop file to
      Exec=webapp-container --enable-back-forward --store-session-cookies --webappModelSearchPath=. %u
- create a webapp-properties.json file in the project folder with the following content:
{
    "name": "MyWebapp",
    "includes":["http://user-agent.me/*"],
    "domain":"user-agent.me",
    "homepage":"http://user-agent.me/",
    "user-agent-override": "Mozilla/5.0 custom-user-agent-string (unlike AnyOtheBrowser)"
}
- make sure that the webapp automatically browses to http://user-agent.me/
- make sure that the UA override is the same as the one listed above,

[Regression Potential]

Make sure that the window title is properly set to the webapp name.

Note:
--------
this is not a dup of https://bugs.launchpad.net/webbrowser-app/+bug/1379497 but a regression

Related branches

Changed in webbrowser-app:
assignee: nobody → Alexandre Abreu (abreu-alexandre)
importance: Undecided → High
status: New → In Progress
no longer affects: ubuntu
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.23+15.04.20150119-0ubuntu1

---------------
webbrowser-app (0.23+15.04.20150119-0ubuntu1) vivid; urgency=low

  [ Alexandre Abreu ]
  * MAke sure that we properly consider the local webapp name that could
    be imported by a webapp-properties file for things like UA
    overrides. (LP: #1408064)

  [ Olivier Tilloy ]
  * Use the host mapping rules in webbrowser-app autopilot tests.
  * Use fixtures.EnvironmentVariable instead of patch_environment, which
    is deprecated. (LP: #1395013)
 -- Ubuntu daily release <email address hidden> Mon, 19 Jan 2015 10:45:40 +0000

Changed in webbrowser-app (Ubuntu):
status: New → Fix Released
Olivier Tilloy (osomon)
Changed in webbrowser-app:
status: In Progress → Fix Released
Changed in webbrowser-app (Ubuntu RTM):
status: New → Confirmed
Changed in canonical-devices-system-image:
importance: Undecided → High
milestone: none → ww05-2015
status: New → In Progress
Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu RTM):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.23+15.04.20150121~rtm-0ubuntu1

---------------
webbrowser-app (0.23+15.04.20150121~rtm-0ubuntu1) 14.09; urgency=low

  [ Alexandre Abreu ]
  * Backport fix to make sure that we properly consider the local webapp
    name that could be imported by a webapp-properties file for things
    like UA overrides. (LP: #1408064)

  [ Olivier Tilloy ]
  * Updated bzr ignore rules.
 -- Ubuntu daily release <email address hidden> Wed, 21 Jan 2015 14:23:44 +0000

Changed in webbrowser-app (Ubuntu RTM):
status: In Progress → Fix Released
Olivier Tilloy (osomon)
Changed in canonical-devices-system-image:
status: In Progress → Fix Released
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.