Closed Bug 1871019 Opened 2 years ago Closed 2 years ago

The invalid webextension telemetry is incorrectly reported for search engines with post data

Categories

(Firefox :: Search, defect, P3)

defect

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

(Whiteboard: [sng])

Attachments

(1 file)

I noticed that a couple of weeks ago there was a bump in telemetry where some add-on installed search engines were showing as having parameters that didn't match the installed add-on.

On investigation, it appears that an add-on incorrectly set search_url_post_params and later reverted it. However, we shouldn't have reported issues as the parameters should have been updated correctly.

Looking at the code, we are doing an equality match on two objects, which is wrong as they are created separately.

What we should be doing is a match against the data - existingSubmission.postData.data.data == newSubmission.postData.data.data.

We should fix that and add some tests to test_webextensions_valid.js that check post data based add-ons.

I suspect this won't affect the telemetry counts much, as search engines using post parameters are quite rare, however it would still be good to fix to get more accurate data.

Assignee: nobody → standard8
Status: NEW → ASSIGNED
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6b9e88e5e216 Fix telemetry reporting about search engines not matching the installed WebExtension when using post parameters. r=search-reviewers,daleharvey
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: