Skip to content

feat(nimbus): Add advanced targeting for newtab widgets available off by default - #17417

Merged
RJAK11 merged 1 commit into
mozilla:mainfrom
maxxcrawford:17416-widgets-none-explicitly-enabled
Oct 6, 2026
Merged

RJAK11 merged 1 commit into
mozilla:mainfrom
maxxcrawford:17416-widgets-none-explicitly-enabled

Conversation

@maxxcrawford

@maxxcrawford maxxcrawford commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

This commit adds targeting that excludes profiles which have explicitly enabled the New Tab widgets container or any individual widget, revealing a widget toggle also makes the widget addable, so a pre-existing user-set enabled: true would render it on the new tab page.

Fixes #17416

@maxxcrawford

Copy link
Copy Markdown
Contributor Author

(Intentionally leaving this as a draft right now)

@maxxcrawford

Copy link
Copy Markdown
Contributor Author

Note: I'm updating this to point towards the previous train-hop as requiring Fx158 is unnecessary and omitted the Stocks widget as part of the targeting. That will remain off and is not part of this query.

@maxxcrawford
maxxcrawford force-pushed the 17416-widgets-none-explicitly-enabled branch from 6f6e21c to 872908f Compare October 6, 2026 17:38
@maxxcrawford

Copy link
Copy Markdown
Contributor Author

I removed the train-hop dependency, and removed the Stocks widget.

@maxxcrawford
maxxcrawford force-pushed the 17416-widgets-none-explicitly-enabled branch from 872908f to 303e55a Compare October 6, 2026 17:38
@maxxcrawford
maxxcrawford marked this pull request as ready for review October 6, 2026 17:38
@freshstrangemusic

Copy link
Copy Markdown
Member

@maxxcrawford Please update your PR description to remove the striked-out text if it is no longer true.

@RJAK11 RJAK11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would it be possible to reformat this targeting expression a little just to make it easier to read through? Maybe using # fmt: off / # fmt: on around the targeting=() block and disabling the line length check there if needed

Also, just wanted to check whether these widget prefs are expected to support population sizing. It looks like the pref values/IsUserSet state needed by this targeting aren’t available in the Desktop targeting context for sizing. If sizing isn’t needed here, then I think this should be fine :)

@maxxcrawford
maxxcrawford force-pushed the 17416-widgets-none-explicitly-enabled branch from 303e55a to cc3f182 Compare October 6, 2026 21:14
@maxxcrawford

Copy link
Copy Markdown
Contributor Author

@RJAK11 Updated to make the ANY_WIDGET_EXPLICITLY_ENABLED more legible. Thanks!

These widget prefs are not expected to support population sizing.

@maxxcrawford
maxxcrawford force-pushed the 17416-widgets-none-explicitly-enabled branch from cc3f182 to e1ba6f0 Compare October 6, 2026 21:17
… by default

This commit adds targeting that excludes profiles which have explicitly enabled the New Tab widgets container or any individual widget, revealing a widget toggle also makes the widget addable, so a pre-existing user-set enabled: true would render it on the new tab page.

Fixes mozilla#17416
@maxxcrawford
maxxcrawford force-pushed the 17416-widgets-none-explicitly-enabled branch from e1ba6f0 to 0b1c423 Compare October 6, 2026 21:17

@RJAK11 RJAK11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you, it looks good to me now!

@RJAK11
RJAK11 enabled auto-merge October 6, 2026 21:21
@RJAK11
RJAK11 added this pull request to the merge queue Oct 6, 2026
Merged via the queue into mozilla:main with commit 4a910d0 Oct 6, 2026
34 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] newtab widgets available but off by default targeting request

3 participants