EngineeringProductivity/HowTo/SignExtensions: Difference between revisions

no edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Update: June 2017'''
In the Add-on manager now checks isInAutomation to see if Firefox is running in the test suite or not. If it is, then the signing checks are bypassed. Meaning that '''most of this document is now no longer relevant'''. All new tests should not need to sign an add-on. There might be some old tests that are still affected.
----
With the new addon signing requirement, working with addons in mozilla-central gets a little more complicated. Anytime an addon is modified, it will need to be version bumped and re-signed. Yes, even if you just want to add a dump statement to debug a try run. Yuck! This guide is intended to provide all the information you need to work with signed addons in mozilla-central. At first, signing will largely be a manual process, but eventually tooling will improve and the process will get easier.
With the new addon signing requirement, working with addons in mozilla-central gets a little more complicated. Anytime an addon is modified, it will need to be version bumped and re-signed. Yes, even if you just want to add a dump statement to debug a try run. Yuck! This guide is intended to provide all the information you need to work with signed addons in mozilla-central. At first, signing will largely be a manual process, but eventually tooling will improve and the process will get easier.


Line 35: Line 41:
* After an addon is signed by one key, it can't later be signed by a second. So it's important to use the shared automation account.
* After an addon is signed by one key, it can't later be signed by a second. So it's important to use the shared automation account.
* If you have accidentally signed an add-on yourself, AMO allows an add-on to be shared by multiple owners. Go to addons.mozilla.org > Tools > Manage My Submissions > [Your add-on] > Manage Authors and add "release+signaddons@mozilla.com" as an owner.   
* If you have accidentally signed an add-on yourself, AMO allows an add-on to be shared by multiple owners. Go to addons.mozilla.org > Tools > Manage My Submissions > [Your add-on] > Manage Authors and add "release+signaddons@mozilla.com" as an owner.   
* Addons with an application id of "toolkit@mozilla.org" don't currently [https://github.com/mozilla/addons-server/issues/1740 get signed by design on AMO] and jpm won't warn you of this, change the application id to Firefox's uuid.
* Addons with an application id of "toolkit@mozilla.org" don't currently [https://github.com/mozilla/addons-server/issues/1740 get signed by design on AMO] and jpm won't warn you of this. To fix this, change the application id to Firefox's uuid.


== How to Avoid Addon Signing ==
== How to Avoid Addon Signing ==
Line 57: Line 63:


If this is an option for you, the short term hassle may be worth the long term benefit of not having to sign.
If this is an option for you, the short term hassle may be worth the long term benefit of not having to sign.
=== Tested unsigned addons in unbranded builds ===
If need to test unsigned extensions in a build, you can use a build that isn't in either beta or release streams.  There are plans to provide unbranded builds for extension providers to use for testing based on beta and release streams, see {{bug|1186522}}
Confirmed users
1,158

edits