From 5d8b76c8278c56c246d3a07f4e75ad397f17577c Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Mon, 4 Apr 2022 12:00:18 +0800 Subject: [PATCH] [Pale-Moon] Issue MoonchildProductions/UXP#21 - Remove panning/tab animation performance measurements --- .../palemoon/base/content/tabbrowser.xml | 91 ------------------- 1 file changed, 91 deletions(-) diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml index 93d17e305e..f57ea14ab9 100644 --- a/application/palemoon/base/content/tabbrowser.xml +++ b/application/palemoon/base/content/tabbrowser.xml @@ -1040,11 +1040,6 @@ if (this.mCurrentBrowser == newBrowser && !aForceUpdate) return; - if (!aForceUpdate) { - window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils) - .beginTabSwitch(); - } - var oldTab = this.mCurrentTab; // Preview mode should not reset the owner @@ -1751,8 +1746,6 @@ if (animate) { requestAnimationFrame(function () { - this.tabContainer._handleTabTelemetryStart(t, aURI); - // kick the animation off t.setAttribute("fadein", "true"); @@ -1953,8 +1946,6 @@ return; } - this.tabContainer._handleTabTelemetryStart(aTab); - this._blurTab(aTab); aTab.style.maxWidth = ""; // ensure that fade-out transition happens aTab.removeAttribute("fadein"); @@ -3619,7 +3610,6 @@ window.addEventListener("resize", this, false); window.addEventListener("load", this, false); - this._tabAnimationLoggingEnabled = Services.prefs.getBoolPref("browser.tabs.animationLogging.enabled", false); this._browserNewtabpageEnabled = Services.prefs.getBoolPref("browser.newtabpage.enabled"); ]]> @@ -4318,85 +4308,6 @@ - - - - - - - - - - - - 0) { - let averageInterval = 0; - let averagePaint = paints[0]; - for (let i = 1; i < frameCount; i++) { - averageInterval += intervals[i]; - averagePaint += paints[i]; - }; - averagePaint /= frameCount; - averageInterval = (frameCount == 1) - ? averagePaint - : averageInterval / (frameCount - 1); - - if (aTab._recordingTabOpenPlain) { - delete aTab._recordingTabOpenPlain; - } - } - ]]> - - - @@ -4413,8 +4324,6 @@ var tab = event.target; - this._handleTabTelemetryEnd(tab); - if (tab.getAttribute("fadein") == "true") { if (tab._fullyOpen) this.adjustTabstrip();