Open Bug 1815530 Opened 2 years ago Updated 1 year ago

messages with non-existing or misspelled group names silently fail to record impressions for that group

Categories

(Firefox :: Messaging System, defect, P3)

defect

Tracking

()

People

(Reporter: dmosedale, Unassigned, NeedInfo)

References

Details

In the process of getting bug 1805470 verified, it became clear that if a group name in a messaging system message does not exist in the message-groups provider, adding an impression for that group silently does not happen:

https://searchfox.org/mozilla-central/rev/08362489086b10de96e7a199b267ea5504c01583/browser/components/newtab/lib/ASRouter.jsm#1357-1359

is some of the code involved.

When this happens, we want to log something to the JS console so that whoever is working on the message/experiment/rollout can tell that there's a problem and have some clue about what debugging is needed.

A somewhat-related question (knowing the answer is not required to fix this bug, however): groups can be intentionally disabled via prefs and there is code around that treats missing/not-enabled groups as valid, but I'm not really sure what the use case for that is. Does anyone know?

The question, however, does influence where this warning wants to go, since the problem here may not be limited to recording impressions.

The more I think about it, the more I suspect that we should warn about this at message-provider load time, though that might require waiting for the message-groups provider load to complete first (if that's not already the case).

Priority: -- → P3

The severity field is not set for this bug.
:tspurway, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(tspurway)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:lsmith, since the bug doesn't have a severity set, could you please set the severity or close the bug?

For more information, please visit BugBot documentation.

Flags: needinfo?(tspurway) → needinfo?(lsmith)
You need to log in before you can comment on or make changes to this bug.