From d54770b9c4ec2555923b2005aa23855b6cbe9dd4 Mon Sep 17 00:00:00 2001 From: Ben Combee Date: Mon, 21 Sep 2009 17:34:37 -0400 Subject: [PATCH] Bug 517314: Remove left-over dumps from Fennec, r=mfinkle --- mobile/chrome/content/BrowserView.js | 2 +- mobile/chrome/content/InputHandler.js | 20 ++++++++++---------- mobile/chrome/content/browser.js | 10 +++++----- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/mobile/chrome/content/BrowserView.js b/mobile/chrome/content/BrowserView.js index 5475443650db..4f5cf6b2f3e3 100644 --- a/mobile/chrome/content/BrowserView.js +++ b/mobile/chrome/content/BrowserView.js @@ -452,7 +452,7 @@ BrowserView.prototype = { try { r.restrictTo(vs.viewportRect); rects.push(r); - } catch(ex) { dump("fail\n"); } + } catch(ex) { /* dump("fail\n"); */ } } tm.dirtyRects(rects, this.isRendering()); diff --git a/mobile/chrome/content/InputHandler.js b/mobile/chrome/content/InputHandler.js index 6b4587a5e7ea..905f47749606 100644 --- a/mobile/chrome/content/InputHandler.js +++ b/mobile/chrome/content/InputHandler.js @@ -658,11 +658,11 @@ MouseModule.prototype = { * Endpoint of _commitAnotherClick(). Finalize a single click and tell the clicker. */ _doSingleClick: function _doSingleClick() { - dump('doing single click with ' + this._downUpEvents.length + '\n'); - for (let i = 0; i < this._downUpEvents.length; ++i) - dump(' ' + this._downUpEvents[i].event.type - + " :: " + this._downUpEvents[i].event.button - + " :: " + this._downUpEvents[i].event.detail + '\n');/**/ + //dump('doing single click with ' + this._downUpEvents.length + '\n'); + //for (let i = 0; i < this._downUpEvents.length; ++i) + // dump(' ' + this._downUpEvents[i].event.type + // + " :: " + this._downUpEvents[i].event.button + // + " :: " + this._downUpEvents[i].event.detail + '\n');/**/ let ev = this._downUpEvents[1].event; this._cleanClickBuffer(2); @@ -673,11 +673,11 @@ MouseModule.prototype = { * Endpoint of _commitAnotherClick(). Finalize a double click and tell the clicker. */ _doDoubleClick: function _doDoubleClick() { - dump('doing double click with ' + this._downUpEvents.length + '\n'); - for (let i = 0; i < this._downUpEvents.length; ++i) - dump(' ' + this._downUpEvents[i].event.type - + " :: " + this._downUpEvents[i].event.button - + " :: " + this._downUpEvents[i].event.detail + '\n');/**/ + //dump('doing double click with ' + this._downUpEvents.length + '\n'); + //for (let i = 0; i < this._downUpEvents.length; ++i) + // dump(' ' + this._downUpEvents[i].event.type + // + " :: " + this._downUpEvents[i].event.button + // + " :: " + this._downUpEvents[i].event.detail + '\n');/**/ let mouseUp1 = this._downUpEvents[1].event; let mouseUp2 = this._downUpEvents[3].event; diff --git a/mobile/chrome/content/browser.js b/mobile/chrome/content/browser.js index 7f2a254c80a9..bf3ab3a5a072 100644 --- a/mobile/chrome/content/browser.js +++ b/mobile/chrome/content/browser.js @@ -1339,7 +1339,7 @@ nsBrowserAccess.prototype = { openURI: function(aURI, aOpener, aWhere, aContext) { var isExternal = (aContext == Ci.nsIBrowserDOMWindow.OPEN_EXTERNAL); if (isExternal && aURI && aURI.schemeIs("chrome")) { - dump("use -chrome command-line option to load external chrome urls\n"); + //dump("use -chrome command-line option to load external chrome urls\n"); return null; } @@ -2347,8 +2347,8 @@ Tab.prototype = { }, startLoading: function() { - if (this._loading) - dump("!!! Already loading this tab, please file a bug\n"); + //if (this._loading) + // dump("!!! Already loading this tab, please file a bug\n"); this._loading = true; this._browserViewportState.zoomChanged = false; @@ -2360,8 +2360,8 @@ Tab.prototype = { }, endLoading: function() { - if (!this._loading) - dump("!!! Already finished loading this tab, please file a bug\n"); + //if (!this._loading) + // dump("!!! Already finished loading this tab, please file a bug\n"); this._loading = false; clearTimeout(this._loadingTimeout);