зеркало из https://github.com/mozilla/gecko-dev.git
Bug 615479 - Password manager prompts can now ask a more complete question [r=dolske]
This commit is contained in:
Родитель
ce2f215b38
Коммит
ae077178d1
|
@ -815,11 +815,11 @@ LoginManagerPrompter.prototype = {
|
||||||
if (aLogin.username) {
|
if (aLogin.username) {
|
||||||
var displayUser = this._sanitizeUsername(aLogin.username);
|
var displayUser = this._sanitizeUsername(aLogin.username);
|
||||||
notificationText = this._getLocalizedString(
|
notificationText = this._getLocalizedString(
|
||||||
"rememberPasswordText",
|
"rememberPasswordMsg",
|
||||||
[displayUser, displayHost]);
|
[displayUser, displayHost]);
|
||||||
} else {
|
} else {
|
||||||
notificationText = this._getLocalizedString(
|
notificationText = this._getLocalizedString(
|
||||||
"rememberPasswordTextNoUsername",
|
"rememberPasswordMsgNoUsername",
|
||||||
[displayHost]);
|
[displayHost]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -947,11 +947,11 @@ LoginManagerPrompter.prototype = {
|
||||||
if (aLogin.username) {
|
if (aLogin.username) {
|
||||||
var displayUser = this._sanitizeUsername(aLogin.username);
|
var displayUser = this._sanitizeUsername(aLogin.username);
|
||||||
dialogText = this._getLocalizedString(
|
dialogText = this._getLocalizedString(
|
||||||
"rememberPasswordText",
|
"rememberPasswordMsg",
|
||||||
[displayUser, displayHost]);
|
[displayUser, displayHost]);
|
||||||
} else {
|
} else {
|
||||||
dialogText = this._getLocalizedString(
|
dialogText = this._getLocalizedString(
|
||||||
"rememberPasswordTextNoUsername",
|
"rememberPasswordMsgNoUsername",
|
||||||
[displayHost]);
|
[displayHost]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1018,11 +1018,11 @@ LoginManagerPrompter.prototype = {
|
||||||
var notificationText;
|
var notificationText;
|
||||||
if (aOldLogin.username)
|
if (aOldLogin.username)
|
||||||
notificationText = this._getLocalizedString(
|
notificationText = this._getLocalizedString(
|
||||||
"updatePasswordText",
|
"updatePasswordMsg",
|
||||||
[aOldLogin.username]);
|
[aOldLogin.username]);
|
||||||
else
|
else
|
||||||
notificationText = this._getLocalizedString(
|
notificationText = this._getLocalizedString(
|
||||||
"updatePasswordTextNoUser");
|
"updatePasswordMsgNoUser");
|
||||||
|
|
||||||
var changeButtonText =
|
var changeButtonText =
|
||||||
this._getLocalizedString("notifyBarUpdateButtonText");
|
this._getLocalizedString("notifyBarUpdateButtonText");
|
||||||
|
@ -1100,11 +1100,11 @@ LoginManagerPrompter.prototype = {
|
||||||
var dialogText;
|
var dialogText;
|
||||||
if (aOldLogin.username)
|
if (aOldLogin.username)
|
||||||
dialogText = this._getLocalizedString(
|
dialogText = this._getLocalizedString(
|
||||||
"updatePasswordText",
|
"updatePasswordMsg",
|
||||||
[aOldLogin.username]);
|
[aOldLogin.username]);
|
||||||
else
|
else
|
||||||
dialogText = this._getLocalizedString(
|
dialogText = this._getLocalizedString(
|
||||||
"updatePasswordTextNoUser");
|
"updatePasswordMsgNoUser");
|
||||||
|
|
||||||
var dialogTitle = this._getLocalizedString(
|
var dialogTitle = this._getLocalizedString(
|
||||||
"passwordChangeTitle");
|
"passwordChangeTitle");
|
||||||
|
|
|
@ -346,7 +346,7 @@ function checkTest() {
|
||||||
ok(popup, "got notification popup");
|
ok(popup, "got notification popup");
|
||||||
// Check the text, which comes from the localized saveLoginText string.
|
// Check the text, which comes from the localized saveLoginText string.
|
||||||
notificationText = popup.message;
|
notificationText = popup.message;
|
||||||
expectedText = /^Remember password for \"notifyu1\" on example.org\?$/;
|
expectedText = /^Would you like to remember the password for \"notifyu1\" on example.org\?$/;
|
||||||
ok(expectedText.test(notificationText), "Checking text: " + notificationText);
|
ok(expectedText.test(notificationText), "Checking text: " + notificationText);
|
||||||
popup.remove();
|
popup.remove();
|
||||||
break;
|
break;
|
||||||
|
@ -359,7 +359,7 @@ function checkTest() {
|
||||||
ok(popup, "got notification popup");
|
ok(popup, "got notification popup");
|
||||||
// Check the text, which comes from the localized saveLoginText string.
|
// Check the text, which comes from the localized saveLoginText string.
|
||||||
notificationText = popup.message;
|
notificationText = popup.message;
|
||||||
expectedText = /^Remember password for \"nowisthetimeforallgoodmentocom[^e]\" on example.org\?$/;
|
expectedText = /^Would you like to remember the password for \"nowisthetimeforallgoodmentocom[^e]\" on example.org\?$/;
|
||||||
ok(expectedText.test(notificationText), "Checking text: " + notificationText);
|
ok(expectedText.test(notificationText), "Checking text: " + notificationText);
|
||||||
popup.remove();
|
popup.remove();
|
||||||
break;
|
break;
|
||||||
|
@ -372,7 +372,7 @@ function checkTest() {
|
||||||
ok(popup, "got notification popup");
|
ok(popup, "got notification popup");
|
||||||
// Check the text, which comes from the localized saveLoginTextNoUser string.
|
// Check the text, which comes from the localized saveLoginTextNoUser string.
|
||||||
notificationText = popup.message;
|
notificationText = popup.message;
|
||||||
expectedText = /^Remember password on example.org\?$/;
|
expectedText = /^Would you like to remember the password on example.org\?$/;
|
||||||
ok(expectedText.test(notificationText), "Checking text: " + notificationText);
|
ok(expectedText.test(notificationText), "Checking text: " + notificationText);
|
||||||
popup.remove();
|
popup.remove();
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -39,13 +39,13 @@
|
||||||
rememberValue = Use Password Manager to remember this value.
|
rememberValue = Use Password Manager to remember this value.
|
||||||
rememberPassword = Use Password Manager to remember this password.
|
rememberPassword = Use Password Manager to remember this password.
|
||||||
savePasswordTitle = Confirm
|
savePasswordTitle = Confirm
|
||||||
# LOCALIZATION NOTE (rememberPasswordText):
|
# LOCALIZATION NOTE (rememberPasswordMsg):
|
||||||
# 1st string is the username for the login, 2nd is the login's hostname.
|
# 1st string is the username for the login, 2nd is the login's hostname.
|
||||||
# Note that long usernames may be truncated.
|
# Note that long usernames may be truncated.
|
||||||
rememberPasswordText = Remember password for "%1$S" on %2$S?
|
rememberPasswordMsg = Would you like to remember the password for "%1$S" on %2$S?
|
||||||
# LOCALIZATION NOTE (rememberPasswordTextNoUsername):
|
# LOCALIZATION NOTE (rememberPasswordMsgNoUsername):
|
||||||
# String is the login's hostname.
|
# String is the login's hostname.
|
||||||
rememberPasswordTextNoUsername = Remember password on %S?
|
rememberPasswordMsgNoUsername = Would you like to remember the password on %S?
|
||||||
notNowButtonText = &Not Now
|
notNowButtonText = &Not Now
|
||||||
notifyBarNotNowButtonText = Not Now
|
notifyBarNotNowButtonText = Not Now
|
||||||
notifyBarNotNowButtonAccessKey = N
|
notifyBarNotNowButtonAccessKey = N
|
||||||
|
@ -56,10 +56,10 @@ rememberButtonText = &Remember
|
||||||
notifyBarRememberPasswordButtonText = Remember Password
|
notifyBarRememberPasswordButtonText = Remember Password
|
||||||
notifyBarRememberPasswordButtonAccessKey = R
|
notifyBarRememberPasswordButtonAccessKey = R
|
||||||
passwordChangeTitle = Confirm Password Change
|
passwordChangeTitle = Confirm Password Change
|
||||||
# LOCALIZATION NOTE (updatePasswordText):
|
# LOCALIZATION NOTE (updatePasswordMsg):
|
||||||
# String is the username for the login.
|
# String is the username for the login.
|
||||||
updatePasswordText = Update saved password for "%S"?
|
updatePasswordMsg = Would you like to update the saved password for "%S"?
|
||||||
updatePasswordTextNoUser = Update saved password?
|
updatePasswordMsgNoUser = Would you like to update the saved password?
|
||||||
notifyBarUpdateButtonText = Update Password
|
notifyBarUpdateButtonText = Update Password
|
||||||
notifyBarUpdateButtonAccessKey = U
|
notifyBarUpdateButtonAccessKey = U
|
||||||
notifyBarDontChangeButtonText = Don't Change
|
notifyBarDontChangeButtonText = Don't Change
|
||||||
|
|
Загрузка…
Ссылка в новой задаче