Bug 390025 - "Move to LoginManager and remove wallet from SeaMonkey" - hook up new password manager [r+sr=neil]

This commit is contained in:
Robert Kaiser 2009-01-15 17:55:32 +00:00
Родитель 47c0934385
Коммит b1c73c7caa
4 изменённых файлов: 40 добавлений и 13 удалений

Просмотреть файл

@ -254,20 +254,7 @@ pref("offline.startup_state", 0);
pref("offline.send.unsent_messages", 0);
pref("offline.download.download_messages", 0);
pref("signon.rememberSignons", true);
pref("signon.expireMasterPassword", false);
pref("browser.formfill.enable", true);
pref("wallet.captureForms", false);
pref("wallet.enabled", true);
pref("wallet.crypto", false);
pref("wallet.crypto.autocompleteoverride", false); // Ignore 'autocomplete=off' - available only when wallet.crypto is enabled.
pref("wallet.namePanel.hide", false);
pref("wallet.addressPanel.hide", false);
pref("wallet.phonePanel.hide", false);
pref("wallet.creditPanel.hide", false);
pref("wallet.employPanel.hide", false);
pref("wallet.miscPanel.hide", false);
// -- folders (Mac: these are binary aliases.)
pref("mail.signature_file", "");

Просмотреть файл

@ -46,6 +46,25 @@ function toNavigator()
OpenBrowserWindow();
}
function toPasswordManager()
{
toOpenWindowByType("Password:Manager",
"chrome://communicator/content/passwordManager.xul");
}
function ExpirePassword()
{
// Queries the HTTP Auth Manager and clears all sessions
Components.classes['@mozilla.org/network/http-auth-manager;1']
.getService(Components.interfaces.nsIHttpAuthManager)
.clearAll();
// Expires the master password
Components.classes["@mozilla.org/security/sdr;1"]
.getService(Components.interfaces.nsISecretDecoderRing)
.logoutAndTeardown();
}
function toDownloadManager()
{
var dlmgr = Components.classes['@mozilla.org/download-manager;1'].getService();

Просмотреть файл

@ -25,6 +25,18 @@
<!-- Tasks Menu -->
<menu id="tasksMenu" label="&tasksMenu.label;" accesskey="&tasksMenu.accesskey;">
<menupopup id="taskPopup">
<menu id="menu_passwordManager"
label="&passwordManagerCmd.label;"
accesskey="&passwordManagerCmd.accesskey;">
<menupopup>
<menuitem label="&passwordDisplayCmd.label;"
accesskey="&passwordDisplayCmd.accesskey;"
oncommand="toPasswordManager();"/>
<menuitem label="&passwordExpireCmd.label;"
accesskey="&passwordExpireCmd.accesskey;"
oncommand="ExpirePassword();"/>
</menupopup>
</menu>
<menuitem id="downloadmgr" label="&downloadManagerCmd.label;" accesskey="&downloadManagerCmd.accesskey;" oncommand="toDownloadManager();"/>
<menuitem id="addonsmgr" accesskey="&addonsManagerCmd.accesskey;"
label="&addonsManagerCmd.label;" oncommand="toEM();"/>

Просмотреть файл

@ -25,6 +25,15 @@
<!ENTITY tasksMenu.label "Tools">
<!ENTITY tasksMenu.accesskey "T">
<!ENTITY passwordManagerCmd.label "Password Manager">
<!ENTITY passwordManagerCmd.accesskey "P">
<!ENTITY passwordDisplayCmd.label "Manage Stored Passwords">
<!ENTITY passwordDisplayCmd.accesskey "M">
<!ENTITY passwordExpireCmd.label "Log Out">
<!ENTITY passwordExpireCmd.accesskey "l">
<!ENTITY downloadManagerCmd.label "Download Manager">
<!ENTITY downloadManagerCmd.accesskey "D">