Public bug reported:

[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

** Affects: webbrowser-app
     Importance: High
     Assignee: Alexandre Abreu (abreu-alexandre)
         Status: In Progress

** Branch linked: lp:~abreu-alexandre/webbrowser-app/fix-local-webapp-
properties-ua-override

** Changed in: webbrowser-app
     Assignee: (unassigned) => Alexandre Abreu (abreu-alexandre)

** Changed in: webbrowser-app
   Importance: Undecided => High

** Changed in: webbrowser-app
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to webbrowser-app.
https://bugs.launchpad.net/bugs/1408064

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

Status in Web Browser App:
  In Progress

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/webbrowser-app/+bug/1408064/+subscriptions

-- 
Mailing list: https://launchpad.net/~ubuntu-webapps-bugs
Post to     : ubuntu-webapps-bugs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-webapps-bugs
More help   : https://help.launchpad.net/ListHelp

Reply via email to