mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 964922 - Enable FxA Sync on Nightly r=markh
This commit is contained in:
parent
98454ae369
commit
5d977d0da8
@ -11,7 +11,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "fxAccounts",
|
||||
|
||||
registerCleanupFunction(function() {
|
||||
// Ensure we don't pollute prefs for next tests.
|
||||
Services.prefs.clearUserPref("identity.fxaccounts.enabled");
|
||||
Services.prefs.clearUserPref("identity.fxaccounts.remote.uri");
|
||||
});
|
||||
|
||||
@ -21,7 +20,6 @@ let gTests = [
|
||||
desc: "Test the remote commands",
|
||||
setup: function ()
|
||||
{
|
||||
Services.prefs.setBoolPref("identity.fxaccounts.enabled", true);
|
||||
Services.prefs.setCharPref("identity.fxaccounts.remote.uri",
|
||||
"https://example.com/browser/browser/base/content/test/general/accounts_testRemoteCommands.html");
|
||||
},
|
||||
|
@ -178,7 +178,6 @@ function uninstallFakePAC() {
|
||||
// to ensure that still works.
|
||||
function setDefaultIdentityConfig() {
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Services.prefs.setBoolPref("identity.fxaccounts.enabled", false);
|
||||
// Services.prefs.setBoolPref("services.sync.fxaccounts.enabled", false);
|
||||
Services.prefs.setBoolPref("services.sync.fxaccounts.enabled", false);
|
||||
}
|
||||
setDefaultIdentityConfig();
|
||||
|
@ -66,24 +66,6 @@ WeaveService.prototype = {
|
||||
},
|
||||
|
||||
get fxAccountsEnabled() {
|
||||
// first check if Firefox accounts is available at all. This is so we can
|
||||
// get this landed without forcing Fxa to be used (and require nightly
|
||||
// testers to manually set this pref)
|
||||
// Once we decide we want Fxa to be available, we just remove this block
|
||||
// (although a fly in this ointment is tests - it might be that we must
|
||||
// just set this as a pref with a default of true)
|
||||
let fxAccountsAvailable;
|
||||
try {
|
||||
fxAccountsAvailable = Services.prefs.getBoolPref("identity.fxaccounts.enabled");
|
||||
} catch (_) {
|
||||
}
|
||||
if (!fxAccountsAvailable) {
|
||||
// Currently we don't support toggling this pref after initialization, so
|
||||
// inject the pref value as a regular boolean.
|
||||
delete this.fxAccountsEnabled;
|
||||
this.fxAccountsEnabled = false;
|
||||
return false;
|
||||
}
|
||||
// work out what identity manager to use. This is stored in a preference;
|
||||
// if the preference exists, we trust it.
|
||||
let fxAccountsEnabled;
|
||||
|
Loading…
Reference in New Issue
Block a user