From 465b4e559283c8a7c537196b5e86712331feecb8 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Fri, 13 Aug 2004 00:54:19 +0000 Subject: [PATCH] Bug #255451 --> Add support for master password to Thunderbid. git-svn-id: svn://10.0.0.236/trunk@160720 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mail/app/profile/thunderbird.js | 3 +- .../prefwindow/content/pref-advanced.js | 5 + .../prefwindow/content/pref-advanced.xul | 6 ++ .../prefwindow/content/pref-masterpass.xul | 101 ++++++++++++++++++ mozilla/mail/components/prefwindow/jar.mn | 2 + .../prefwindow/locale/pref-advanced.dtd | 7 +- .../prefwindow/locale/pref-masterpass.dtd | 18 ++++ .../smime/content/pref-smime-advanced.xul | 27 +++-- .../mail/extensions/smime/locale/am-smime.dtd | 9 +- 9 files changed, 164 insertions(+), 14 deletions(-) create mode 100644 mozilla/mail/components/prefwindow/content/pref-masterpass.xul create mode 100644 mozilla/mail/components/prefwindow/locale/pref-masterpass.dtd diff --git a/mozilla/mail/app/profile/thunderbird.js b/mozilla/mail/app/profile/thunderbird.js index fd2c964f766..d4068b654f1 100644 --- a/mozilla/mail/app/profile/thunderbird.js +++ b/mozilla/mail/app/profile/thunderbird.js @@ -97,7 +97,6 @@ pref("update.severity", 0); pref("update.extensions.count", 0); pref("xpinstall.whitelist.add", "update.mozilla.org"); - ///////////////////////////////////////////////////////////////// // Overrides of the seamonkey suite mailnews.js prefs ///////////////////////////////////////////////////////////////// @@ -289,7 +288,7 @@ pref("javascript.options.showInConsole", true); pref("network.enableIDN", false); // Turn on/off IDN (Internationalized Domain Name) resolution pref("wallet.captureForms", true); pref("wallet.enabled", true); -pref("wallet.crypto", false); +pref("wallet.crypto", true); // needs to be enabled for the master password to work 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); diff --git a/mozilla/mail/components/prefwindow/content/pref-advanced.js b/mozilla/mail/components/prefwindow/content/pref-advanced.js index 6608dc3a120..168d59a5fff 100644 --- a/mozilla/mail/components/prefwindow/content/pref-advanced.js +++ b/mozilla/mail/components/prefwindow/content/pref-advanced.js @@ -165,6 +165,11 @@ function editPasswords() window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","_blank","chrome,centerscreen,resizable=yes", "S"); } +function editMasterPassword() +{ + window.openDialog("chrome://messenger/content/pref-masterpass.xul","_blank","chrome,centerscreen,resizable=yes", "masterPassword"); +} + function checkForUpdates() { var updates = Components.classes["@mozilla.org/updates/update-service;1"] diff --git a/mozilla/mail/components/prefwindow/content/pref-advanced.xul b/mozilla/mail/components/prefwindow/content/pref-advanced.xul index b7113048128..df40a22cf0c 100644 --- a/mozilla/mail/components/prefwindow/content/pref-advanced.xul +++ b/mozilla/mail/components/prefwindow/content/pref-advanced.xul @@ -166,6 +166,12 @@ id="viewStoredPassword" prefstring="pref.advanced.password.disable_button.view_stored_password"/> + + +