Skip to content

feat(nimbus): Add targeting for closed-browser web notifications - #17256

Merged
RJAK11 merged 2 commits into
mozilla:mainfrom
halemu:17251-has-allowed-notifications-targeting
Sep 16, 2026
Merged

RJAK11 merged 2 commits into
mozilla:mainfrom
halemu:17251-has-allowed-notifications-targeting

Conversation

@halemu

@halemu halemu commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Because:

  • The Closed-Browser Web Notifications Delivery experiment targets Windows 10+ users with profiles 28+ days old, non-enterprise, who have allowed at least one origin to send notifications
  • Bug 2069104 adds the allowedNotificationOrigins targeting attribute that the notifications clause depends on

This commit:

  • Adds has_allowed_notifications, a reusable config for users who have granted notification permission to at least one origin
  • Adds cbwn_delivery_established_profiles for the experiment itself, composing PROFILE28DAYS, NO_ENTERPRISE and has_allowed_notifications
  • Marks allowedNotificationOrigins as untranslatable for BigQuery, since it is not yet recorded to the Glean targeting context
  • Preserves allowedNotificationOrigins as a known targeting field until the recorded targeting context manifest picks it up from Bug 2069104

Fixes #17251

Because:

- The Closed-Browser Web Notifications Delivery experiment targets Windows
  10+ users with profiles 28+ days old, non-enterprise, who have allowed at
  least one origin to send notifications
- An experiment can only select one advanced targeting config, so the
  criteria need to be composed into a single config
- Bug 2069104 adds the allowedNotificationOrigins targeting attribute that
  the notifications clause depends on

This commit:

- Adds has_allowed_notifications, a reusable config for users who have
  granted notification permission to at least one origin
- Adds cbwn_delivery_established_profiles for the experiment itself,
  composing PROFILE28DAYS, NO_ENTERPRISE and has_allowed_notifications
- Marks allowedNotificationOrigins as untranslatable for BigQuery, since it
  is not yet recorded to the Glean targeting context
- Preserves allowedNotificationOrigins as a known targeting field until the
  recorded targeting context manifest picks it up from Bug 2069104

Once Bug 2069104 rides out and the External Configs bot syncs the manifest,
the preserved-keys entry should be dropped and allowedNotificationOrigins
moved from KNOWN_UNTRANSLATABLE into JEXL_TO_BQ_COLUMN to enable audience
sizing for these configs.

Fixes mozilla#17251
"attachedFxAOAuthClients",
# Remove once the recorded targeting context manifest includes this
# attribute (Bug 2069104).
"allowedNotificationOrigins",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome thnx for linking the relevant bug 🙏

@yashikakhurana
yashikakhurana marked this pull request as ready for review September 14, 2026 15:50
@yashikakhurana
yashikakhurana added this pull request to the merge queue Sep 14, 2026
@yashikakhurana
yashikakhurana removed this pull request from the merge queue due to a manual request Sep 14, 2026
@yashikakhurana
yashikakhurana marked this pull request as draft September 14, 2026 15:50
@yashikakhurana

Copy link
Copy Markdown
Contributor

@halemu can I mark this ready for review?

@halemu
halemu marked this pull request as ready for review September 15, 2026 14:10
@jaredlockhart
jaredlockhart added this pull request to the merge queue Sep 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 15, 2026
@halemu

halemu commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

Hi @yashikakhurana Could this be merged now? Thanks!

@RJAK11
RJAK11 added this pull request to the merge queue Sep 16, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Sep 16, 2026
@RJAK11
RJAK11 added this pull request to the merge queue Sep 16, 2026
@RJAK11
RJAK11 removed this pull request from the merge queue due to a manual request Sep 16, 2026
@RJAK11
RJAK11 enabled auto-merge September 16, 2026 16:10
@RJAK11
RJAK11 added this pull request to the merge queue Sep 16, 2026
Merged via the queue into mozilla:main with commit efc56d2 Sep 16, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Targeting] Add a targeting attribute for the number of origins allowed to send notifications

4 participants