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"/>
+
+
+
+
+
diff --git a/mozilla/mail/components/prefwindow/content/pref-masterpass.xul b/mozilla/mail/components/prefwindow/content/pref-masterpass.xul
new file mode 100644
index 00000000000..0b2b52f9f25
--- /dev/null
+++ b/mozilla/mail/components/prefwindow/content/pref-masterpass.xul
@@ -0,0 +1,101 @@
+
+
+
+
+
+%brandDTD;
+
+%masterPassDTD;
+]>
+
+
diff --git a/mozilla/mail/components/prefwindow/jar.mn b/mozilla/mail/components/prefwindow/jar.mn
index 5aace3e607c..c5698165809 100644
--- a/mozilla/mail/components/prefwindow/jar.mn
+++ b/mozilla/mail/components/prefwindow/jar.mn
@@ -7,6 +7,7 @@ messenger.jar:
*+ content/messenger/pref-mailnews.js (content/pref-mailnews.js)
*+ content/messenger/pref-advanced.xul (content/pref-advanced.xul)
*+ content/messenger/pref-advanced.js (content/pref-advanced.js)
+ content/messenger/pref-masterpass.xul (content/pref-masterpass.xul)
comm.jar:
+ content/communicator/pref/pref.xul (content/pref.xul)
@@ -26,6 +27,7 @@ en-US.jar:
+ locale/en-US/messenger/pref-viewing_messages.dtd (locale/pref-viewing_messages.dtd)
+ locale/en-US/messenger/AccountManager.dtd (locale/AccountManager.dtd)
+ locale/en-US/messenger/pref-advanced.dtd (locale/pref-advanced.dtd)
++ locale/en-US/messenger/pref-masterpass.dtd (locale/pref-masterpass.dtd)
+ locale/en-US/mozapps/downloads/pref-downloads.dtd (locale/pref-downloads.dtd)
en-win.jar:
diff --git a/mozilla/mail/components/prefwindow/locale/pref-advanced.dtd b/mozilla/mail/components/prefwindow/locale/pref-advanced.dtd
index 244f0bc175b..63ec0ba7e9e 100644
--- a/mozilla/mail/components/prefwindow/locale/pref-advanced.dtd
+++ b/mozilla/mail/components/prefwindow/locale/pref-advanced.dtd
@@ -10,10 +10,13 @@
-
+
-
+
+
+
+
diff --git a/mozilla/mail/components/prefwindow/locale/pref-masterpass.dtd b/mozilla/mail/components/prefwindow/locale/pref-masterpass.dtd
new file mode 100644
index 00000000000..14365a7c001
--- /dev/null
+++ b/mozilla/mail/components/prefwindow/locale/pref-masterpass.dtd
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/mail/extensions/smime/content/pref-smime-advanced.xul b/mozilla/mail/extensions/smime/content/pref-smime-advanced.xul
index 6c299e4cc9d..63ff8b138e1 100644
--- a/mozilla/mail/extensions/smime/content/pref-smime-advanced.xul
+++ b/mozilla/mail/extensions/smime/content/pref-smime-advanced.xul
@@ -49,25 +49,34 @@
-
-
-
-
+
+
+
+
+
+
+ &managecerts.text;
+
+ accesskey="&managecerts.accesskey;"
+ prefstring="security.disable_button.openCertManager"/>
+
-
-
-
+
+
+
+ &managedevices.text;
+
+
-
+
diff --git a/mozilla/mail/extensions/smime/locale/am-smime.dtd b/mozilla/mail/extensions/smime/locale/am-smime.dtd
index 62e13e3ce31..0cb195bf3a2 100644
--- a/mozilla/mail/extensions/smime/locale/am-smime.dtd
+++ b/mozilla/mail/extensions/smime/locale/am-smime.dtd
@@ -22,4 +22,11 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+