Public bug reported:

The UA override lists are plain javascript files shipped by qml-module-
ubuntu-web. The overrides are hardcoded, and often contain version
numbers such as the webkit build version, the chrome/chromium build
version, the ubuntu release, e.g.:

  "Mozilla/5.0 (Linux; Ubuntu 14.04 like Android 4.4) AppleWebKit/537.36
Chromium/35.0.1870.2 Mobile Safari"

It would be useful if we could generate those files at build time, and
allow for variables to be replaced. For example, the above UA string
would become:

  "Mozilla/5.0 (Linux; Ubuntu @UBUNTU_VERSION@ like Android 4.4)
AppleWebKit/@WEBKIT_VERSION@ Chromium/@CHROMIUM_VERSION@ Mobile
Safari/@WEBKIT_VERSION@"

Not all overrides would be required to use those variables, if necessary
some version numbers could remain hardcoded.

** Affects: webbrowser-app (Ubuntu)
     Importance: Medium
         Status: New

** Changed in: webbrowser-app (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1591220

Title:
  Generate UA override lists at build time to allow variable
  substitutions

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to