Closed Bug 1880410 Opened 1 year ago Closed 1 year ago

Cleanup parts of search telemetry

Categories

(Firefox :: Search, task, P2)

task

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: jteow, Assigned: jteow)

References

Details

(Whiteboard: [sng])

Attachments

(1 file)

There are a couple places in SearchTelemetry and SearchSERPTelemetryChild that could be improved without a change of functionality.

  1. Moving the explicit calls to remove event listeners in the pagehide event
  2. Renaming some of the properties passed to the engagement report as target to better reflect how it'll be reported
  3. Adding an observer of page actions so that tests can use them.

These changes alone shouldn't affect search telemetry, but will make it easier to do some other code refactoring.

Blocks: 1879341
No longer blocks: 1879714

Largely non-functional changes:

  • The pagehide callback can live in the top level pagehide event.
  • Moving the submitted check into the callback will make it easier to refactor
    the helper that adds event listeners.
  • Changing the callbacks to use target as the name will make it easier to
    remember that the target is potentially overwritable.
  • waitForPageWithAction can be used in future tests.

Depends on D202035

Pushed by jteow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e9209f2fb0d6 Clean up parts of search telemetry - r=scunnane
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: