Store your Firefox website usernames and passwords in Apple's Keychain Services, just like Safari and other browsers do on OS X. This allows you to use the same stored logins in any browser that uses the Keychain. It also allows you to take advantage of the security features of Keychain Services such as auto-locking when the screensaver is activated.
Install the extension here: https://addons.mozilla.org/en-US/firefox/addon/13509/
The first time you run Firefox with this extension enabled, you will be prompted to migrate your existing stored passwords (if any) to the Mac OS X Keychain. Thereafter, new credentials will no longer be stored in your Firefox profile. This means, for example, that your credentials will not be included if you later migrate your Firefox profile to another computer.
This extension tries as hard as possible to avoid requesting access to your passwords until it needs them, however it is ultimately Firefox/Thunderbird that decides what passwords to ask for when. If you find you're getting a lot of prompts, your only real option is to click "Always Allow" (or ask Mozilla to avoid asking for passwords until they actually need them).
To enable detailed logging, go to about:config
and set the signon.debug
preference to true
. Some log messages will appear in the Browser Console; yet more detail should be visible in OS X's Console.app.
To help out with development:
- Get the code:
git clone [email protected]:jfitzell/mozilla-keychain.git
- Download a version of Firefox Developer Edition, Nightly, or an unbranded build
- (Optional) Create a profile for development (some of the other recommendations in that link may also be helpful)
- Enabled unsigned extensions:
- type
about:config
into the URL bar in Firefox - in the Search box type
xpinstall.signatures.required
- double-click the preference, or right-click and select "Toggle", to set it to
false
. - Tell Firefox to load the extension directly from the folder where you cloned the repository
- Enable logging by setting
signon.debug
totrue
; logging is visible in the Browser Console. For trace level logging, start Firefox from the command line with/path/to/Firefox.app/Contents/MacOS/firefox-bin -ProfileManager
. - It can also be useful to use another keychain specifically for development and testing. In
about:config
setextensions.macos-keychain.search-path
andextensions.macos-keychain.write-file
to e.g.~/Library/Keychains/test.keychain
To create a new package:
- Update
install.rdf
with new version number and update minVersion and maxVersion as appropriate - Update
CHANGES
with the major changes since the last release - Zip up the folder. From inside the repository run
zip -r ../releases/macos-keychain-VERSION.xpi *