summaryrefslogtreecommitdiff
path: root/base/content/tabbrowser.xml
diff options
context:
space:
mode:
Diffstat (limited to 'base/content/tabbrowser.xml')
-rw-r--r--base/content/tabbrowser.xml92
1 files changed, 1 insertions, 91 deletions
diff --git a/base/content/tabbrowser.xml b/base/content/tabbrowser.xml
index 3b17718..c6202d2 100644
--- a/base/content/tabbrowser.xml
+++ b/base/content/tabbrowser.xml
@@ -1310,8 +1310,7 @@
This function assumes we have an LRU cache of tabs (either
images of tab content or their layers). The goal is to find
out how far into the cache we need to look in order to find
- aTab. We record this number in telemetry and also move aTab to
- the front of the cache.
+ aTab. We move aTab to the front of the cache.
A newly created tab has position Infinity in the cache.
If a tab is closed, it has no effect on the position of other
@@ -1323,10 +1322,6 @@
<method name="_recordTabAccess">
<parameter name="aTab"/>
<body><![CDATA[
- if (!Services.telemetry.canRecordExtended) {
- return;
- }
-
let tabs = Array.from(this.visibleTabs);
let pos = aTab.cachePosition;
@@ -1338,10 +1333,6 @@
}
}
aTab.cachePosition = 0;
-
- if (isFinite(pos)) {
- Services.telemetry.getHistogramById("TAB_SWITCH_CACHE_POSITION").add(pos);
- }
]]></body>
</method>
@@ -2249,8 +2240,6 @@
if (animate) {
requestAnimationFrame(function () {
- this.tabContainer._handleTabTelemetryStart(t, aURI);
-
// kick the animation off
t.setAttribute("fadein", "true");
}.bind(this));
@@ -2434,8 +2423,6 @@
return;
}
- this.tabContainer._handleTabTelemetryStart(aTab);
-
this._blurTab(aTab);
aTab.style.maxWidth = ""; // ensure that fade-out transition happens
aTab.removeAttribute("fadein");
@@ -5858,81 +5845,6 @@
</body>
</method>
- <method name="_handleTabTelemetryStart">
- <parameter name="aTab"/>
- <parameter name="aURI"/>
- <body>
- <![CDATA[
- // Animation-smoothness telemetry/logging
- if (Services.telemetry.canRecordExtended || this._tabAnimationLoggingEnabled) {
- if (aURI == "about:newtab" && (aTab._tPos == 1 || aTab._tPos == 2)) {
- // Indicate newtab page animation where other tabs are unaffected
- // (for which case, the 2nd or 3rd tabs are good representatives, even if not absolute)
- aTab._recordingTabOpenPlain = true;
- }
- aTab._recordingHandle = window.QueryInterface(Ci.nsIInterfaceRequestor)
- .getInterface(Ci.nsIDOMWindowUtils)
- .startFrameTimeRecording();
- }
-
- // Overall animation duration
- aTab._animStartTime = Date.now();
- ]]>
- </body>
- </method>
-
- <method name="_handleTabTelemetryEnd">
- <parameter name="aTab"/>
- <body>
- <![CDATA[
- if (!aTab._animStartTime) {
- return;
- }
-
- aTab._animStartTime = 0;
-
- // Handle tab animation smoothness telemetry/logging of frame intervals and paint times
- if (!("_recordingHandle" in aTab)) {
- return;
- }
-
- let intervals = window.QueryInterface(Ci.nsIInterfaceRequestor)
- .getInterface(Ci.nsIDOMWindowUtils)
- .stopFrameTimeRecording(aTab._recordingHandle);
- delete aTab._recordingHandle;
- let frameCount = intervals.length;
-
- if (this._tabAnimationLoggingEnabled) {
- let msg = "Tab " + (aTab.closing ? "close" : "open") + " (Frame-interval):\n";
- for (let i = 0; i < frameCount; i++) {
- msg += Math.round(intervals[i]) + "\n";
- }
- Services.console.logStringMessage(msg);
- }
-
- // For telemetry, the first frame interval is not useful since it may represent an interval
- // to a relatively old frame (prior to recording start). So we'll ignore it for the average.
- if (frameCount > 1) {
- let averageInterval = 0;
- for (let i = 1; i < frameCount; i++) {
- averageInterval += intervals[i];
- }
- averageInterval = averageInterval / (frameCount - 1);
-
- Services.telemetry.getHistogramById("FX_TAB_ANIM_ANY_FRAME_INTERVAL_MS").add(averageInterval);
-
- if (aTab._recordingTabOpenPlain) {
- delete aTab._recordingTabOpenPlain;
- // While we do have a telemetry probe NEWTAB_PAGE_ENABLED to monitor newtab preview, it'll be
- // easier to overview the data without slicing by it. Hence the additional histograms with _PREVIEW.
- let preview = this._browserNewtabpageEnabled ? "_PREVIEW" : "";
- Services.telemetry.getHistogramById("FX_TAB_ANIM_OPEN" + preview + "_FRAME_INTERVAL_MS").add(averageInterval);
- }
- }
- ]]>
- </body>
- </method>
-
<!-- Deprecated stuff, implemented for backwards compatibility. -->
<property name="mAllTabsPopup" readonly="true"
onget="return document.getElementById('alltabs-popup');"/>
@@ -5947,8 +5859,6 @@
var tab = event.target;
- this._handleTabTelemetryEnd(tab);
-
if (tab.getAttribute("fadein") == "true") {
if (tab._fullyOpen)
this.adjustTabstrip();