Compatibility/Mobile/WipeOutUAOverides
Contents
Wipe Out User Agent (UA) Overrides
User Agent (UA) overrides is to be a short lived solution until the Web content is fixed to recognize B2G as mobile or the site has been fixed to modern methods.
Goal
This goal of this project is to drive the B2G UA override list to zero.
Scope
The scope of this project is all sites listed on the UA override list. This list is also available in Bugzilla.
The sites for which UA overrides have been added have each been smoke tested to ensure that they are functional. The request of these sites is simply to recognize the B2G UA as mobile, preferably by recognizing the "Mobi" token in the UA.
Duration
A report will be done by mid-March 2014.
Communication
Communication Type | Mechanism | Audience |
---|---|---|
UA override list | Mozilla Central source file, Bugzilla bugs | All |
Press & Blog Posts
Progress Reports
2013 | |
---|---|
|
People
Project Management | Lawrence Mandel |
Partner Outreach | Karl Dubost |
Tooling | Hallvord Steen |
Dependencies
Updating the UA override list
Since the end of 2013, the UA override list is managed dynamically on the server side. @@Insert here the relevant bugs and documentation@@
Once a bug has been resolved it is necessary to update the ua-override list on the Mozilla Central. It is possible to make one pull request for a few ua strings override at the same time.
For the following instructions, you are expected to have
- A working knowledge of hg
- A Mozilla bugzilla account
Preparation
- Install Mercurial (10 minutes)
- Get Mozilla Source Code Using Mercurial with
hg clone https://hg.mozilla.org/mozilla-central/ mozilla-central
(A lot of times: 2.3 GB to transfer) - If it's your first time with Mercurial:
./mach mercurial-setup
will save you a lot of time for configuration and be ready to work with Mozilla environment.
Updating the UA override list
-
cd /your/path/mozilla-central
-
hg status
-
hg qpop -a
-
hg pull -u
-
cd b2g/app
- Check the Remove UA override bug, you are working with to find the list of domains to remove.
- Edit the UA override
ua-update.json.in
- Be sure that all the domains you are removing are actually closed bugs on the bug dependency list.
- Create a new patch. For example:
hg qnew ua-override-bug965060.patch
- Add as an attachment the patch to the bug (for example Bug 965060). The patch is avalaible in
mozilla-central/.hg/patches/
. - Ask for review of your code
r? lmandel
- Once the patch got a
r+
, add the keywordcheckin-needed
- Once it is in. The committer will close the bug.
UA Override List
Outstanding
No results.
0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);
Fixed
No results.
0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);