mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge mozilla-central to services-central.
This commit is contained in:
commit
fd2b32e298
@ -92,9 +92,9 @@ var gSyncSetup = {
|
||||
init: function () {
|
||||
let obs = [
|
||||
["weave:service:changepph:finish", "onResetPassphrase"],
|
||||
["weave:service:verify-login:start", "onLoginStart"],
|
||||
["weave:service:verify-login:error", "onLoginEnd"],
|
||||
["weave:service:verify-login:finish", "onLoginEnd"]];
|
||||
["weave:service:login:start", "onLoginStart"],
|
||||
["weave:service:login:error", "onLoginEnd"],
|
||||
["weave:service:login:finish", "onLoginEnd"]];
|
||||
|
||||
// Add the observers now and remove them on unload
|
||||
let self = this;
|
||||
@ -216,6 +216,8 @@ var gSyncSetup = {
|
||||
feedback = server;
|
||||
break;
|
||||
case Weave.LOGIN_FAILED_LOGIN_REJECTED:
|
||||
case Weave.LOGIN_FAILED_NO_USERNAME:
|
||||
case Weave.LOGIN_FAILED_NO_PASSWORD:
|
||||
feedback = password;
|
||||
break;
|
||||
case Weave.LOGIN_FAILED_INVALID_PASSPHRASE:
|
||||
|
@ -194,12 +194,13 @@ let gSyncUtils = {
|
||||
*/
|
||||
passphraseSave: function(elid) {
|
||||
let dialogTitle = this.bundle.GetStringFromName("save.synckey.title");
|
||||
let defaultSaveName = this.bundle.GetStringFromName("save.default.label");
|
||||
this._preparePPiframe(elid, function(iframe) {
|
||||
let filepicker = Cc["@mozilla.org/filepicker;1"]
|
||||
.createInstance(Ci.nsIFilePicker);
|
||||
filepicker.init(window, dialogTitle, Ci.nsIFilePicker.modeSave);
|
||||
filepicker.appendFilters(Ci.nsIFilePicker.filterHTML);
|
||||
filepicker.defaultString = "Firefox Sync Key.html";
|
||||
filepicker.defaultString = defaultSaveName;
|
||||
let rv = filepicker.show();
|
||||
if (rv == Ci.nsIFilePicker.returnOK
|
||||
|| rv == Ci.nsIFilePicker.returnReplace) {
|
||||
|
@ -30,6 +30,7 @@ historyDaysCount.label = #1 day of history;#1 days of history
|
||||
passwordsCount.label = #1 password;#1 passwords
|
||||
|
||||
save.synckey.title = Save Sync Key
|
||||
save.default.label = Firefox Sync Key.html
|
||||
|
||||
newAccount.action.label = Firefox Sync is now set up to automatically sync all of your browser data.
|
||||
newAccount.change.label = You can choose exactly what to sync by selecting Sync Options below.
|
||||
|
@ -1,9 +1,10 @@
|
||||
error.login.reason.network = Failed to connect to the server
|
||||
error.login.reason.synckey = Wrong Sync Key
|
||||
error.login.reason.account = Incorrect account name or password
|
||||
error.login.reason.no_password= No saved password to use
|
||||
error.login.reason.no_synckey = No saved Sync Key to use
|
||||
error.login.reason.server = Server incorrectly configured
|
||||
error.login.reason.network = Failed to connect to the server
|
||||
error.login.reason.synckey = Wrong Sync Key
|
||||
error.login.reason.account = Incorrect account name or password
|
||||
error.login.reason.no_username = Missing account name
|
||||
error.login.reason.no_password2 = Missing password
|
||||
error.login.reason.no_synckey = No saved Sync Key to use
|
||||
error.login.reason.server = Server incorrectly configured
|
||||
|
||||
error.sync.failed_partial = One or more data types could not be synced
|
||||
|
||||
|
@ -149,7 +149,7 @@ ENGINE_SUCCEEDED: "success.engine",
|
||||
|
||||
// login failure status codes:
|
||||
LOGIN_FAILED_NO_USERNAME: "error.login.reason.no_username",
|
||||
LOGIN_FAILED_NO_PASSWORD: "error.login.reason.no_password",
|
||||
LOGIN_FAILED_NO_PASSWORD: "error.login.reason.no_password2",
|
||||
LOGIN_FAILED_NO_PASSPHRASE: "error.login.reason.no_synckey",
|
||||
LOGIN_FAILED_NETWORK_ERROR: "error.login.reason.network",
|
||||
LOGIN_FAILED_SERVER_ERROR: "error.login.reason.server",
|
||||
|
Loading…
Reference in New Issue
Block a user