Bug 1516229 - Follow-up: Remove fetchhttp debug output. r+a=jorgk
authorBen Bucksch <ben.bucksch@beonex.com>
Tue, 08 Jan 2019 19:33:00 +0100
changeset 33939 86a575e521b82f34285c6c6566c9e933d468a010
parent 33938 288a64bc4e709686ca1390a2319fd194347b3d38
child 33940 c9e0cf17a0df6ef6fba09e888f6f11135d877319
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
bugs1516229
Bug 1516229 - Follow-up: Remove fetchhttp debug output. r+a=jorgk
mail/components/accountcreation/content/fetchhttp.js
--- a/mail/components/accountcreation/content/fetchhttp.js
+++ b/mail/components/accountcreation/content/fetchhttp.js
@@ -162,19 +162,16 @@ FetchHTTP.prototype =
     } else if (this._args.bodyFormArgs) {
       mimetype = "application/x-www-form-urlencoded; charset=UTF-8";
       body = "";
       for (let name in this._args.bodyFormArgs) {
         body += (body ? "&" : "") + name + "=" +
             encodeURIComponent(this._args.bodyFormArgs[name]);
       }
     }
-    if (body) {
-      this._logger.info("with body:\n" + body);
-    }
 
     // Headers
     if (mimetype && !("Content-Type" in this._args.headers)) {
       request.setRequestHeader("Content-Type", mimetype);
     }
     if (username && password) {
       // workaround, because open(..., username, password) does not work.
       request.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password));
@@ -184,17 +181,16 @@ FetchHTTP.prototype =
       if (name == "Cookie") {
         // Websites are not allowed to set this, but chrome is.
         // Nevertheless, the cookie lib later overwrites our header.
         // request.channel.setCookie(this._args.headers[name]); -- crashes
         // So, deactivate that Firefox cookie lib.
         request.channel.loadFlags |= Ci.nsIRequest.LOAD_ANONYMOUS;
       }
     }
-    this._logger.info(debugObject(this._args, "args"));
 
     var me = this;
     request.onload = function() { me._response(true); };
     request.onerror = function() { me._response(false); };
     request.ontimeout = function() { me._response(false); };
     request.send(body);
     // Store the original stack so we can use it if there is an exception
     this._callStack = Error().stack;