canmove, Confirmed users
1,448
edits
(Merging MDN docs) |
(Minor formatting changes) |
||
Line 10: | Line 10: | ||
Package the hotfix by running <code>HOTFIX=vYYYYMMDD.XX make package</code> in the root srcdir. This instruction can also be found in the [http://hg.mozilla.org/releases/firefox-hotfixes/file/tip/README README] file. | Package the hotfix by running <code>HOTFIX=vYYYYMMDD.XX make package</code> in the root srcdir. This instruction can also be found in the [http://hg.mozilla.org/releases/firefox-hotfixes/file/tip/README README] file. | ||
Tips: | |||
* It's nicer to use <code>hg copy</code> to copy the folder so that the commit will display only the changes between the files. | |||
* Whenever we change a pref in a hotfix, we need to change the pref name in Firefox, otherwise users will get stuck with this custom value which won't be reset when Firefox updates | |||
== Testing the hotfix locally == | == Testing the hotfix locally == | ||
Line 44: | Line 48: | ||
=== Signatures=== | === Signatures=== | ||
The hotfix extension is signed and the Add-ons Manager will only install it if it matches a pinned signature, stored in the <code>extensions.hotfix.certs.1.sha1Fingerprint<code> pref. | The hotfix extension is signed and the Add-ons Manager will only install it if it matches a pinned signature, stored in the <code>extensions.hotfix.certs.1.sha1Fingerprint</code> pref. | ||
The signature has changed over time (in Firefox 16.0.2 and Firefox 24), and users with current installations were updated to the newer signatures through a hotfix itself ([https://bugzilla.mozilla.org/show_bug.cgi?id=803596 bug 803596] and [https://bugzilla.mozilla.org/show_bug.cgi?id=874513 bug 874513]). | The signature has changed over time (in Firefox 16.0.2 and Firefox 24), and users with current installations were updated to the newer signatures through a hotfix itself ([https://bugzilla.mozilla.org/show_bug.cgi?id=803596 bug 803596] and [https://bugzilla.mozilla.org/show_bug.cgi?id=874513 bug 874513]). | ||
Line 53: | Line 57: | ||
To not wait on the update interval and manually trigger the update check, you can run the following code snippet. Please only do this when debugging things or when there's plenty of evidence that the timer update trigger is working properly. | To not wait on the update interval and manually trigger the update check, you can run the following code snippet. Please only do this when debugging things or when there's plenty of evidence that the timer update trigger is working properly. | ||
< | <pre>var obj = {}; | ||
Cu.import("resource://gre/modules/AddonManager.jsm", obj); | Cu.import("resource://gre/modules/AddonManager.jsm", obj); | ||
obj.AddonManagerPrivate.backgroundUpdateCheck();</ | obj.AddonManagerPrivate.backgroundUpdateCheck();</pre> | ||
Run this in a privileged script context, such as the Browser Console or Scratchpad set to the Browser environment. | Run this in a privileged script context, such as the Browser Console or Scratchpad set to the Browser environment. | ||
Line 64: | Line 68: | ||
# Clone the bug into a new bug, and assign it to the Add-ons team for signing and staging. (:kmag or :jorgev, otherwise contact the AMMO team, ammo-team@m.c) ([https://bugzilla.mozilla.org/show_bug.cgi?id=1196078 Example 1], [https://bugzilla.mozilla.org/show_bug.cgi?id=1201129 Example 2]) | # Clone the bug into a new bug, and assign it to the Add-ons team for signing and staging. (:kmag or :jorgev, otherwise contact the AMMO team, ammo-team@m.c) ([https://bugzilla.mozilla.org/show_bug.cgi?id=1196078 Example 1], [https://bugzilla.mozilla.org/show_bug.cgi?id=1201129 Example 2]) | ||
# File is signed and is attached to the signing bug. | # File is signed and is attached to the signing bug. | ||
# Signed file is uploaded to addons.allizom.org and published. | # Signed file is uploaded to addons-dev.allizom.org and published. | ||
# Bug is reassigned to QA for testing. | # Bug is reassigned to QA for testing. | ||
# QA signs off, hotfix owner signs off. | # QA signs off, hotfix owner signs off. | ||
Line 70: | Line 74: | ||
# Add-ons team notifies release-drivers@m.o and moc@m.c about the deployment, including bug number. | # Add-ons team notifies release-drivers@m.o and moc@m.c about the deployment, including bug number. | ||
# Signed file is uploaded to addons.mozilla.org and published. | # Signed file is uploaded to addons.mozilla.org and published. | ||