summaryrefslogtreecommitdiffstats
path: root/application/basilisk/components/customizableui/CustomizeMode.jsm
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-06-22 13:03:45 +0200
committerGitHub <noreply@github.com>2018-06-22 13:03:45 +0200
commit5f5523bffd09c2caa5de5a08758db9574cb5978b (patch)
tree78273646952793ba3d80ca8d270edf485c235cc6 /application/basilisk/components/customizableui/CustomizeMode.jsm
parent4b65237d5d6e6f84a69571435e7b9fa5b36f444f (diff)
parente3719ec517645a17224d2f3e5d3320ea77952719 (diff)
downloadUXP-5f5523bffd09c2caa5de5a08758db9574cb5978b.tar
UXP-5f5523bffd09c2caa5de5a08758db9574cb5978b.tar.gz
UXP-5f5523bffd09c2caa5de5a08758db9574cb5978b.tar.lz
UXP-5f5523bffd09c2caa5de5a08758db9574cb5978b.tar.xz
UXP-5f5523bffd09c2caa5de5a08758db9574cb5978b.zip
Merge pull request #528 from g4jc/remove_browser_ui_telemetry
backport mozbug 1453667: Remove BrowserUITelemetry from Basilisk application
Diffstat (limited to 'application/basilisk/components/customizableui/CustomizeMode.jsm')
-rw-r--r--application/basilisk/components/customizableui/CustomizeMode.jsm17
1 files changed, 0 insertions, 17 deletions
diff --git a/application/basilisk/components/customizableui/CustomizeMode.jsm b/application/basilisk/components/customizableui/CustomizeMode.jsm
index e63e25b0a..4365ddfbc 100644
--- a/application/basilisk/components/customizableui/CustomizeMode.jsm
+++ b/application/basilisk/components/customizableui/CustomizeMode.jsm
@@ -31,8 +31,6 @@ Cu.import("resource://gre/modules/AppConstants.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "DragPositionManager",
"resource:///modules/DragPositionManager.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "BrowserUITelemetry",
- "resource:///modules/BrowserUITelemetry.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "LightweightThemeManager",
"resource://gre/modules/LightweightThemeManager.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "SessionStore",
@@ -1119,7 +1117,6 @@ CustomizeMode.prototype = {
this.resetting = true;
// Disable the reset button temporarily while resetting:
let btn = this.document.getElementById("customization-reset-button");
- BrowserUITelemetry.countCustomizationEvent("reset");
btn.disabled = true;
return Task.spawn(function*() {
this._removePanelCustomizationPlaceholders();
@@ -1755,7 +1752,6 @@ CustomizeMode.prototype = {
}
CustomizableUI.removeWidgetFromArea(aDraggedItemId);
- BrowserUITelemetry.countCustomizationEvent("remove");
// Special widgets are removed outright, we can return here:
if (CustomizableUI.isSpecialWidget(aDraggedItemId)) {
return;
@@ -1797,7 +1793,6 @@ CustomizeMode.prototype = {
this.wrapToolbarItem(aTargetNode, place);
}
this.wrapToolbarItem(draggedItem, place);
- BrowserUITelemetry.countCustomizationEvent("move");
return;
}
@@ -1805,12 +1800,6 @@ CustomizeMode.prototype = {
// widget to the end of the area.
if (aTargetNode == aTargetArea.customizationTarget) {
CustomizableUI.addWidgetToArea(aDraggedItemId, aTargetArea.id);
- // For the purposes of BrowserUITelemetry, we consider both moving a widget
- // within the same area, and adding a widget from one area to another area
- // as a "move". An "add" is only when we move an item from the palette into
- // an area.
- let custEventType = aOriginArea.id == kPaletteId ? "add" : "move";
- BrowserUITelemetry.countCustomizationEvent(custEventType);
this._onDragEnd(aEvent);
return;
}
@@ -1847,14 +1836,8 @@ CustomizeMode.prototype = {
} else {
CustomizableUI.addWidgetToArea(aDraggedItemId, aTargetArea.id, position);
}
-
this._onDragEnd(aEvent);
- // For BrowserUITelemetry, an "add" is only when we move an item from the palette
- // into an area. Otherwise, it's a move.
- let custEventType = aOriginArea.id == kPaletteId ? "add" : "move";
- BrowserUITelemetry.countCustomizationEvent(custEventType);
-
// If we dropped onto a skipintoolbarset item, manually correct the drop location:
if (aTargetNode != itemForPlacement) {
let draggedWrapper = draggedItem.parentNode;