зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1021595 - Set "services.mobileid.forcehttps" to true once the server is https. r=jedp
This commit is contained in:
Родитель
b0024232ac
Коммит
f1d146e3eb
|
@ -996,7 +996,8 @@ pref("services.sync.fxaccounts.enabled", true);
|
||||||
pref("identity.fxaccounts.enabled", true);
|
pref("identity.fxaccounts.enabled", true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pref("services.mobileid.server.uri", "http://msisdn.dev.mozaws.net");
|
// Mobile Identity API.
|
||||||
|
pref("services.mobileid.server.uri", "https://msisdn-dev.stage.mozaws.net");
|
||||||
|
|
||||||
// Enable mapped array buffer
|
// Enable mapped array buffer
|
||||||
pref("dom.mapped_arraybuffer.enabled", true);
|
pref("dom.mapped_arraybuffer.enabled", true);
|
||||||
|
|
|
@ -21,9 +21,8 @@ Cu.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
||||||
this.MobileIdentityClient = function(aServerUrl) {
|
this.MobileIdentityClient = function(aServerUrl) {
|
||||||
let serverUrl = aServerUrl || SERVER_URL;
|
let serverUrl = aServerUrl || SERVER_URL;
|
||||||
let forceHttps = false;
|
let forceHttps = true;
|
||||||
try {
|
try {
|
||||||
// TODO: Force https in production. Bug 1021595.
|
|
||||||
forceHttps = Services.prefs.getBoolPref(PREF_FORCE_HTTPS);
|
forceHttps = Services.prefs.getBoolPref(PREF_FORCE_HTTPS);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
log.warn("Getting force HTTPS pref failed. If this was not intentional " +
|
log.warn("Getting force HTTPS pref failed. If this was not intentional " +
|
||||||
|
|
Загрузка…
Ссылка в новой задаче