Firefox Developer Editionに未署名の自作アドオンをインストールする

初めての拡張機能 - Mozilla | MDNを参考にアドオン開発を試していた。

about:debuggingでの動作はできたのだが、xpi形式のインストールがうまく行かなかった。 Firefox のアドオン署名 | Firefox ヘルプを参考に、環境はFirefox Developer Editionで用い、about:configの設定も変えていた。

ここを見ることで解決できた。 discourse.mozilla.org 結局IDが必要ということらしい。

公式ドキュメントの

extensionworkshop.com

を見ると

However, from Firefox 48 you can develop, debug, publish, and update extensions without needing to set an explicit ID at all.

とあるので一見必要なさそうだが、その下をよく読むと

If you turn the extension into an .xpi or .zip and install it through about:addons, it will not work. To have it work in this scenario, you will need to add in the browser_specific_settings key in manifest.json

とあるので、自分でzip化してインストールするときには適当なIDを付ける必要がある。