mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-07 03:38:51 +02:00
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 |
||
|---|---|---|
| .. | ||
| CatBackgroundTaskRegistrationComponents.manifest | ||
| experiment.json | ||
| head.js | ||
| test_backgroundtask_deletes_profile.js | ||
| test_backgroundtask_exitcodes.js | ||
| test_backgroundtask_experiments.js | ||
| test_backgroundtask_help.js | ||
| test_backgroundtask_localization.js | ||
| test_backgroundtask_locked_profile.js | ||
| test_backgroundtask_no_output.js | ||
| 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 | ||
| 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 | ||