Closed Bug 1878062 Opened 1 year ago Closed 1 year ago

For tracked SPAs, accurately remove listeners from the content process and content specific engagements that cause search page changes

Categories

(Firefox :: Search, task, P1)

task

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: jteow, Assigned: jteow)

References

Details

(Whiteboard: [sng])

Attachments

(1 file)

While smoke testing the SPA patch, there were a couple errors I didn't notice related to the content process:

  1. In SearchSERPTelemetryChild, addEventListenerToElements doesn't just get called once per page load, so clobbering a possible existing WeakMap value will result in some listeners not being unloaded when manually tasked to do so.

  2. If we register a click event in the content process that we want to take precedence over information sent in the network, namely clicking an auto-suggested term or submitting the search, a check for an engagement will occur before the message from the child is sent.

We could first check if a submitted event was sent in the document, at which point we should not register an additional event.

Whiteboard: [sng]
Pushed by jteow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5fd4633cdd0b Check for a possible content process event before manually registering an engagement event - r=scunnane
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Regressions: 1879404
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: