ubuntu-apps-bugs team mailing list archive
-
ubuntu-apps-bugs team
-
Mailing list archive
-
Message #09630
[Bug 1591220] Re: Generate UA override lists at build time to allow variable substitutions
** Also affects: canonical-devices-system-image
Importance: Undecided
Status: New
** Changed in: canonical-devices-system-image
Importance: Undecided => Medium
** Changed in: canonical-devices-system-image
Status: New => Fix Committed
** Changed in: canonical-devices-system-image
Milestone: None => 13
--
You received this bug notification because you are a member of Ubuntu
Apps bug tracking, which is subscribed to webbrowser-app in Ubuntu.
https://bugs.launchpad.net/bugs/1591220
Title:
Generate UA override lists at build time to allow variable
substitutions
Status in Canonical System Image:
Fix Committed
Status in webbrowser-app package in Ubuntu:
In Progress
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1591220/+subscriptions
References