Bug 1272639 - Remove debug logging; r?jgriffin draft
authorAndreas Tolfsen <ato@mozilla.com>
Fri, 13 May 2016 13:12:46 +0100
changeset 366781 a888e635bdcd440518df82dad24c62afed15b4e7
parent 366780 5a2deb5a9b09df9ad2ca3ac1d0c480be250d31e4
child 520856 53b6f60ab3baafd5243207dcdf8b625342238b81
push id18072
push userbmo:ato@mozilla.com
push dateFri, 13 May 2016 12:20:05 +0000
reviewersjgriffin
bugs1272639
milestone49.0a1
Bug 1272639 - Remove debug logging; r?jgriffin MozReview-Commit-ID: 95bQjH6FNnD
testing/marionette/browser.js
testing/marionette/driver.js
--- a/testing/marionette/browser.js
+++ b/testing/marionette/browser.js
@@ -28,17 +28,16 @@ const XUL_NS = "http://www.mozilla.org/k
  * @param {nsIDOMWindow} win
  *     The window whose browser needs to be accessed.
  * @param {GeckoDriver} driver
  *     Reference to the driver the browser is attached to.
  */
 browser.Context = class {
 
   constructor(win, driver) {
-    logger.info("Context ctor");
     this.browser = undefined;
     this.window = win;
     this.driver = driver;
     this.knownFrames = [];
     this.startPage = "about:blank";
     // used in B2G to identify the homescreen content page
     this.mainContentId = null;
     // used to set curFrameId upon new session
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -276,19 +276,17 @@ GeckoDriver.prototype.addFrameCloseListe
  *
  * @param {nsIDOMWindow} win
  *     Window for which we will create a browsing context.
  *
  * @return {string}
  *     Returns the unique server-assigned ID of the window.
  */
 GeckoDriver.prototype.addBrowser = function(win) {
-  logger.info("addBrowser");
   let bc = new browser.Context(win, this);
-  logger.info("bc=" + bc);
   let winId = win.QueryInterface(Ci.nsIInterfaceRequestor)
       .getInterface(Ci.nsIDOMWindowUtils).outerWindowID;
   winId = winId + ((this.appName == "B2G") ? "-b2g" : "");
   this.browsers[winId] = bc;
   this.curBrowser = this.browsers[winId];
   if (typeof this.curBrowser.elementManager.seenItems[winId] == "undefined") {
     // add this to seenItems so we can guarantee
     // the user will get winId as this window's id