Bug 1021595 - Set "services.mobileid.forcehttps" to true once the server is https. r=jedp

This commit is contained in:
Fernando Jiménez 2014-07-03 11:56:34 +02:00
Родитель b0024232ac
Коммит f1d146e3eb
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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 " +