diff --git a/application/basilisk/components/search/content/search.xml b/application/basilisk/components/search/content/search.xml index d7ec8e2fa7..a40360006d 100644 --- a/application/basilisk/components/search/content/search.xml +++ b/application/basilisk/components/search/content/search.xml @@ -372,37 +372,8 @@ var textBox = this._textbox; var textValue = textBox.value; - let selection = this.telemetrySearchDetails; let oneOffRecorded = false; - if (!selection || (selection.index == -1)) { - oneOffRecorded = this.textbox.popup.oneOffButtons - .maybeRecordTelemetry(aEvent, aWhere, aParams); - if (!oneOffRecorded) { - let source = "unknown"; - let type = "unknown"; - let target = aEvent.originalTarget; - if (aEvent instanceof KeyboardEvent) { - type = "key"; - } else if (aEvent instanceof MouseEvent) { - type = "mouse"; - if (target.classList.contains("search-panel-header") || - target.parentNode.classList.contains("search-panel-header")) { - source = "header"; - } - } else if (aEvent instanceof XULCommandEvent) { - if (target.getAttribute("anonid") == "paste-and-search") { - source = "paste"; - } - } - if (!aEngine) { - aEngine = this.currentEngine; - } - BrowserSearch.recordOneoffSearchInTelemetry(aEngine, source, type, - aWhere); - } - } - // This is a one-off search only if oneOffRecorded is true. this.doSearch(textValue, aWhere, aEngine, aParams, oneOffRecorded); @@ -433,18 +404,7 @@ let engine = aEngine || this.currentEngine; var submission = engine.getSubmission(aData, null, "searchbar"); - let telemetrySearchDetails = this.telemetrySearchDetails; - this.telemetrySearchDetails = null; - if (telemetrySearchDetails && telemetrySearchDetails.index == -1) { - telemetrySearchDetails = null; - } - // If we hit here, we come either from a one-off, a plain search or a suggestion. - const details = { - isOneOff: aOneOff, - isSuggestion: (!aOneOff && telemetrySearchDetails), - selection: telemetrySearchDetails - }; - BrowserSearch.recordSearchInTelemetry(engine, "searchbar", details); + // null parameter below specifies HTML response for search let params = { postData: submission.postData, @@ -767,7 +727,6 @@ } if (this._selectionDetails && this._selectionDetails.currentIndex != -1) { - BrowserSearch.searchBar.telemetrySearchDetails = this._selectionDetails; this._selectionDetails = null; } document.getBindingParent(this).handleSearchCommand(aEvent, engine); @@ -984,9 +943,6 @@ ); this.style.minWidth = minWidth + "px"; - // Set the origin before assigning the popup, as the assignment does - // a rebuild and would miss the origin. - this.oneOffButtons.telemetryOrigin = "searchbar"; // Set popup after setting the minWidth since it builds the buttons. this.oneOffButtons.popup = this; this.oneOffButtons.textbox = this.input; @@ -1181,10 +1137,6 @@ ]]> - - "" - "" - - - - - - -