gecko-dev/toolkit/components/backgroundtasks/tests/xpcshell
Nick Alexander 8962ddabf4 Bug 1804988 - Determine toast notification tag from experiment:branch slug in backgroundTaskMessage experiments. r=barret
This commit uses a "pull" approach, where the experiment details are
fished at presentation-time and the content `tag` updated.

A few notes:

- With this approach, the update function is pushed down to the leaf
  node (the toast notification presentation layer).  It would be nice to
  do this at the experiment layer, but that layer doesn't resolve the
  presentation layer at this time, so it would perhaps violate the
  abstraction to lift the work higher.

- No effort has been made to mark `tag` as invalid in the messaging
  experiment schemas.  At this time, there's no provision for fields
  accepted at the presentation layer (`ToastNotification.schema.json`)
  but not at the experiment layer aggregating
  presentations (`BackgroundTaskMessagingExperiment.schema.json`,
  `MessagingExperiment.schema.json`).  It's likely possible to arrange
  this but not worth the effort at this time.

- The actual tag displayed is not captured in the message as it flows
  through ASRouter.  This is not likely to pose a problem.

- The actual tag displayed might be `optin-...`, potentially
  complicating data analysis.  Since it's essentially impossible for
  regular users to opt-in to _background task_ messages, that's not a
  pressing concern.

Differential Revision: https://phabricator.services.mozilla.com/D164508
2022-12-14 18:52:34 +00:00
..
CatBackgroundTaskRegistrationComponents.manifest
experiment.json Bug 1804988 - Determine toast notification tag from experiment:branch slug in backgroundTaskMessage experiments. r=barret 2022-12-14 18:52:34 +00:00
head.js
test_backgroundtask_deletes_profile.js Bug 1541508 - Use Services.env in toolkit/ r=Gijs,application-update-reviewers,nalexander 2022-11-25 19:09:11 +00:00
test_backgroundtask_exitcodes.js
test_backgroundtask_experiments.js Bug 1804988 - Determine toast notification tag from experiment:branch slug in backgroundTaskMessage experiments. r=barret 2022-12-14 18:52:34 +00:00
test_backgroundtask_help.js
test_backgroundtask_localization.js
test_backgroundtask_locked_profile.js
test_backgroundtask_no_output.js Bug 1768961 - Avoid logging from pingsender. r=nrishel 2022-12-08 20:17:06 +00:00
test_backgroundtask_not_ephemeral_profile.js
test_backgroundtask_policies.js
test_backgroundtask_profile_is_slim.js
test_backgroundtask_profile_service_configuration.js
test_backgroundtask_removeDirectory.js
test_backgroundtask_shouldprocessupdates.js
test_backgroundtask_simultaneous_instances.js Bug 1541508 - Use Services.env in toolkit/ r=Gijs,application-update-reviewers,nalexander 2022-11-25 19:09:11 +00:00
test_backgroundtask_specific_pref.js
test_backgroundtask_targeting.js
test_backgroundtask_unique_profile.js
test_backgroundtask_update_sync_manager.js
test_backgroundtasksutils.js
test_manifest_with_backgroundtask.js
test_manifest_without_backgroundtask.js
xpcshell.ini Bug 1804825 - Skip test_backgroundtask_no_output.js under code coverage. r=marco 2022-12-12 17:28:26 +00:00