Compatibility/Mobile/WipeOutUAOverides: Difference between revisions

Jump to navigation Jump to search
m
(→‎Dependencies: How to edit the UA override list)
Line 78: Line 78:


# Go to [https://github.com/mozilla-b2g/gaia/ Gaia project] on github.
# Go to [https://github.com/mozilla-b2g/gaia/ Gaia project] on github.
# Fork it  <code>https://github.com/{your_account}/gaia/</code>
# Fork it  <br/><code>https://github.com/{your_account}/gaia/</code>
# Clone the project locally on your computer. It will be long. it's >300Mo <code>git clone https://github.com/{your_account}/gaia/<br/>cd gaia</code>
# Clone the project locally on your computer. It will be long. it's >300Mo<br/> <code>git clone https://github.com/{your_account}/gaia/<br/>cd gaia</code>
# Add the project as an upstream to help you keep in sync. <code>git remote add upstream https://github.com/mozilla-b2g/gaia.git</code>
# Add the project as an upstream to help you keep in sync.<br/> <code>git remote add upstream https://github.com/mozilla-b2g/gaia.git</code>


Each time you have to modify the list :)
Each time you have to modify the list :)


# Synchronize your repo with the mother repo <code>git fetch upstream</code>
# Synchronize your repo with the mother repo<br/> <code>git fetch upstream</code>
# Modify the <code>gaia/blob/master/build/ua-override-prefs.js</code>
# Modify the <code>gaia/blob/master/build/ua-override-prefs.js</code>
# Do a separate commit for each individual lines <code>commit -m "bug_number- bug label" ua-override-prefs.js</code>
# Do a separate commit for each individual lines<br/> <code>commit -m "bug_number- bug label" ua-override-prefs.js</code>
# One finished, push your modification to your github repo. <code>git push</code>
# One finished, push your modification to your github repo.<br/> <code>git push</code>
# You can create a diff file for a patch if you want. Not mandatory. <code>git diff -U8 > patchfile.patch</code> you might want to add it to the bug you will create later on.
# You can create a diff file for a patch if you want. Not mandatory.<br/> <code>git diff -U8 > patchfile.patch</code> you might want to add it to the bug you will create later on.
# Create a pull request on the gaia project with your modifications
# Create a pull request on the gaia project with your modifications
# Create a new bug in bugzilla with the title "Remove UA override for example.org". Replace example.org by the domain
# Create a new bug in bugzilla with the title "Remove UA override for example.org". Replace example.org by the domain
Confirmed users
1,567

edits

Navigation menu