Enabling the Password Manager

Xulrunner provides a simple password management service.

If you are using XULRunner prior to version 24 (or XULRunner included with Firefox prior to version 26), put the following in your rc:

session_pref("signon.rememberSignons", true);
session_pref("signon.expireMasterPassword", false);
session_pref("signon.SignonFileName", "signons.txt");
Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager); // init

If you are using later versions of XULRunner, add the new login-manager to your rc.