Commit Graph

133 Commits

Author SHA1 Message Date
Jason Prickett
e0dcd0eed6 Bug 1959283 - Give addons picker flex wrapping a breakpoint r=omc-reviewers,mimi
This patch removes the wrapping of the addons-container at all widths, and instead wraps it only at widths < 960 and > 800, which is the range that the contents of the container can overflow if the title of the addon has a very long word in it.

Differential Revision: https://phabricator.services.mozilla.com/D248091
2025-05-06 23:12:33 +00:00
isaac
34664bd6e0 Bug 1959517 - [themes] Replace all instances of font-weight: 590 with the --font-weight-bold token. r=hjones,desktop-theme-reviewers,omc-reviewers,urlbar-reviewers,mimi,jteow,emilio
Differential Revision: https://phabricator.services.mozilla.com/D246064
2025-05-06 00:37:08 +00:00
Meg Viar
359c19c184 Bug 1962766 - Label multiselect inputs with both label and description when present r=omc-reviewers,hanna_a
Differential Revision: https://phabricator.services.mozilla.com/D247471
2025-05-05 20:26:51 +00:00
Atila Butkovits
12436bf2c2 Revert "Bug 1962766 - Label multiselect inputs with both label and description when present r=omc-reviewers,hanna_a" for causing failures at browser_aboutwelcome_multiselect.js.
This reverts commit b61f8c3281.
2025-05-05 11:41:59 +00:00
hanna.alemu
aa6e7c7b9f Bug 1956042 - Support multiple instances of SingleSelect on the same aboutwelcome screen r=omc-reviewers,jprickett,mviar" for causing failures at browser_aboutwelcome_multiselect.js. 2025-05-05 11:37:45 +00:00
Atila Butkovits
fdfa96ea29 Revert "Bug 1956042 - Support multiple instances of SingleSelect on the same aboutwelcome screen r=omc-reviewers,jprickett,mviar" for causing failures at browser_aboutwelcome_multiselect.js.
This reverts commit 9165ff110c.
2025-05-05 11:18:02 +00:00
Meg Viar
b61f8c3281 Bug 1962766 - Label multiselect inputs with both label and description when present r=omc-reviewers,hanna_a
Differential Revision: https://phabricator.services.mozilla.com/D247471
2025-05-05 09:42:59 +00:00
hanna.alemu
9165ff110c Bug 1956042 - Support multiple instances of SingleSelect on the same aboutwelcome screen r=omc-reviewers,jprickett,mviar
Differential Revision: https://phabricator.services.mozilla.com/D244230
2025-05-05 09:12:29 +00:00
Norisz Fay
a56bced222 Revert "Bug 1956042 - Support multiple instances of SingleSelect on the same aboutwelcome screen r=omc-reviewers,jprickett,mviar"
This reverts commit 800203446b.
2025-05-01 19:23:27 +00:00
hanna.alemu
800203446b Bug 1956042 - Support multiple instances of SingleSelect on the same aboutwelcome screen r=omc-reviewers,jprickett,mviar
Differential Revision: https://phabricator.services.mozilla.com/D244230
2025-05-01 17:51:32 +00:00
Meg Viar
a3a5cf512a Bug 1961630 - Make aboutwelcome template brand logo non-selectable r=omc-reviewers,mimi
- Make the brand logo element non-selectable.
  - As brand logo is used across a number of messaging system surfaces, I've taken the simplest approach here of off adding `-moz-user-select: none;` without changing the structure of the brand logo element.

Differential Revision: https://phabricator.services.mozilla.com/D247165
2025-05-01 03:50:36 +00:00
Narcis Beleuzu
a53d0d5c50 Backed out changeset 278f966a7c60 (bug 1956042) for causing Node failure on aboutwelcome 2025-04-24 01:57:46 +03:00
hanna.alemu
e5fc27aa1d Bug 1956042 - Support multiple instances of SingleSelect on the same aboutwelcome screen r=omc-reviewers,jprickett,mviar
Differential Revision: https://phabricator.services.mozilla.com/D244230
2025-04-23 21:20:34 +00:00
Jason Prickett
808fa66cb4 Bug 1956091 - Allow configuration of title and subtitle in aboutwelcome secondary section r=omc-reviewers,emcminn
This patch allows title and subtitle to be configurable as hero text in the secondary section of about:welcome

Differential Revision: https://phabricator.services.mozilla.com/D246333
2025-04-23 17:28:47 +00:00
negin
683788d91c Bug 1953209 - Adds dialog border for HCM r=omc-reviewers,mviar
Adds HCM border using `CanvasText`, hyperlink color was fixed in another bug

Differential Revision: https://phabricator.services.mozilla.com/D245502
2025-04-22 00:22:47 +00:00
Emily McMinn
20e1dc6911 Bug 1958294 - Add aria-label && aria-labelledby options to submenu buttons r=omc-reviewers,fluent-reviewers,bolsson,mviar
Differential Revision: https://phabricator.services.mozilla.com/D244992
2025-04-11 16:52:22 +00:00
Emily McMinn
d77050b733 Bug 1930181 - Update RTAMO onboarding and integrate it into about:welcome r=frontend-codestyle-reviewers,fluent-reviewers,omc-reviewers,jprickett,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D232292
2025-04-07 20:16:34 +00:00
Shane Hughes
68848bd409 Bug 1931454 - Allow feature callouts to have multiple screens without requiring a tour pref. r=omc-reviewers,mviar
This adds a new `advance_screens` pseudo-action to the `feature_callout`
messaging system template, which can be added to any action in the same
way `navigate` is used currently. This should generally be used instead
of `navigate`, which only advances the inner content but not the outer
wrapper, the anchor, the page event listeners, and other state relevant
for panel callouts.

Some callouts want to show even if the `cfr.features` pref is disabled,
such as surveys and important onboarding messages, and hard-coding that
check in FeatureCallout is heavy-handed as we already have better ways
to do it. Most callouts belong to the `cfr` group, which locks them
behind the features pref. Any that can't use groups, like the PDF
annotations callouts, can check the pref directly in their targeting.

Aside from blocking messages that don't want to be blocked by that pref,
it also results in a weird behavior where, if the pref changes while the
callout is still open (pretty unlikely), the callout will hide when you
click "next" instead of advancing to the next screen. If you clicked the
Next button, it should show you the next screen, even if you somehow
blocked the message by pref before clicking.

So it's cleaner to just let ASRouter handle that in the targeting phase.
If the pref changes while a message is showing, then we'll just leave it
open, and it won't apply until targeting is checked.

It's appropriate to make the change here, because this patch adds a new
screen advancement scheme, separate from the tour pref system. Since
we're reproducing the advancement logic, we're forced to decide whether
to reproduce the feature pref check in this new scheme. I realized 99%
of the time it's doing nothing, and in the rare cases where it does have
an effect that differs from the regular pref targeting, it's a negative
effect. And at that point, we might as well rip the bandaid off all at
once, to keep everything consistent.

Additionally, while adding documentation for this new feature, I also
corrected some existing errors in the documentation.

Differential Revision: https://phabricator.services.mozilla.com/D229084
2025-04-04 08:27:57 +00:00
Jason Prickett
f0aa1499dd Bug 1953857 - Add styles to support picker design in multiselect r=omc-reviewers,mviar
This patch adds functionality to the multiselect component to allow for a "picker" design. The picker design is enabled by adding the `multiSelectDesign` property with a value of `picker` to a tile object of type `multiselect`.

Differential Revision: https://phabricator.services.mozilla.com/D243350
2025-04-03 17:51:53 +00:00
Meg Viar
e8818f74c9 Bug 1956089 - Support new progress dot indicator designs for fullscreen AboutWelcome r=omc-reviewers,jprickett
[See Figma](https://www.figma.com/design/HPoBaDK7F3IzB8v1yCTvW4/NUO-2025-Experiments?node-id=71-30651&t=2zdY4Kw7CR9QE3Ba-0)

Dot indicator positions in narrow mode should be unaffected.

{F17150917}

{F17150924}

Differential Revision: https://phabricator.services.mozilla.com/D244201
2025-04-03 13:10:59 +00:00
Stanca Serban
310b95171c Backed out changeset 45a873795cac (bug 1930181) for causing mochitests failures. CLOSED TREE 2025-04-01 19:55:31 +03:00
Emily McMinn
7b64d9d14b Bug 1930181 - Update RTAMO onboarding and integrate it into about:welcome r=frontend-codestyle-reviewers,fluent-reviewers,omc-reviewers,jprickett,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D232292
2025-04-01 15:19:51 +00:00
Jason Prickett
ee7ab56773 Bug 1952335 - add ability for the state of multiple multiselects to exist in same screen r=omc-reviewers,mviar
Differential Revision: https://phabricator.services.mozilla.com/D241138
2025-03-14 17:25:49 +00:00
Jason Prickett
92fefbadbf Bug 1948139 - Support fullscreen mode for addons screen in onboarding r=omc-reviewers,mviar
This patch changes the markup of the addons picker in fullscreen onboarding to support new designs, and further alters the addons picker styles to support its use in fullscreen split onboarding screens for future experimentation.

Differential Revision: https://phabricator.services.mozilla.com/D240095
2025-03-10 17:10:23 +00:00
Emily McMinn
c4129a5ba8 Bug 1945700 - Add a boolean background property to dismiss buttons that enables contrasting colours r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D237640
2025-02-28 23:12:17 +00:00
Jason Prickett
6db56b25b6 Bug 1948323 - Add ability for content tiles to have titles, and tiles to be looped in onboarding r=omc-reviewers,mviar
This patch changes some of aboutwelcome's CSS to support the addition of a title and subtitle per content tile. It also adds styles that enable multiple content tiles to be used in onboarding.

Differential Revision: https://phabricator.services.mozilla.com/D239486
2025-02-28 19:49:14 +00:00
Cristina Horotan
31fc34a639 Backed out changeset 56a7f2dc99ce (bug 1948323) for causing nide failures. CLOSED TREE 2025-02-28 08:30:53 +02:00
Jason Prickett
6c0431fb83 Bug 1948323 - Add ability for content tiles to have titles, and tiles to be looped in onboarding r=omc-reviewers,mviar
Differential Revision: https://phabricator.services.mozilla.com/D239486
2025-02-28 05:11:33 +00:00
Meg Viar
4066ecbd13 Bug 1948717 - Add flag that enables running actions in MULTI_ACTION SMA in sequential order r=jprickett,omc-reviewers,nalexander
To support the upcoming TOS preonboarding experiment, we want to ensure the following actions occur sequentially:
  - setting prefs, including `datareporting.healthreport.uploadEnabled` (`SET_PREF`)
  - submitting the onboarding opt-out ping, if applicable (`SUBMIT_ONBOARDING_OPT_OUT_PING`)
  - notifying that the data reporting notification has been interacted with (`DATAREPORTING_NOTIFY_DATA_POLICY_INTERACTED`).

When these actions occur out of order, it is possible for telemetry to be enabled and then disabled. This is likely what accounts for the onboarding-opt-out followed by deletion-request pings witnessed by QA in Bug 1948717.

We believe that the issue is that the `MULTI_ACTION` SMA does not guarantee any ordering of its child actions: see [[ https://searchfox.org/mozilla-central/rev/0d1f8ff61fe506646fe3898ef727817b4436ab32/toolkit/components/messaging-system/lib/SpecialMessageActions.sys.mjs#687-696 | here ]]. That's by design, since early actions including pinning and set-to-default, which are slow and can be run concurrently. But here, we expect sequential ordering (and also [[ https://searchfox.org/mozilla-central/rev/0d1f8ff61fe506646fe3898ef727817b4436ab32/browser/components/aboutwelcome/content-src/components/MultiStageAboutWelcome.jsx#578-585 | in the code ]]).

The obvious way to address this is to have the MULTI_ACTION order its child actions. However, this needs to be a flag, since we have existing consumers and we want to minimize disruption.

This patch adds support for an `orderedExecution` flag on message `action` configurations for those with type `MULTI_ACTION`. This applies to nested `MULTI_ACTIONS` using `collectSelect` as well, assuming each `MULTI_ACTION` has the `orderedExecution` flag.

Differential Revision: https://phabricator.services.mozilla.com/D238816
2025-02-20 00:28:02 +00:00
negin
dcb1e17bac Bug 1935254 - Adds expanded and aria-haspopup to Submenu button component r=omc-reviewers,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D238223
2025-02-19 20:04:29 +00:00
Goloman Adrian
d0282745e3 Backed out changeset bc504729e2b4 (bug 1935254) for causing node failures. 2025-02-14 22:50:15 +02:00
negin
b7df104fb5 Bug 1935254 - Adds expanded and aria-haspopup to Submenu button component r=omc-reviewers,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D238223
2025-02-14 18:49:19 +00:00
Meg Viar
da90402d32 Bug 1947510 - Save default MultiSelect choices even if component defaults to a collapsed state r=omc-reviewers,hanna_a,jprickett
We want to capture the default state of multiselect checklist items when a user clicks the primary CTA on an aboutwelcome screen, even if the checklist hasn't been rendered yet (such as when the user needs to click a button to toggle it in to view).

Differential Revision: https://phabricator.services.mozilla.com/D237773
2025-02-11 22:22:30 +00:00
Meg Viar
d9c8f880f7 Bug 1947317 - Expand/Collapse buttons do not follow the correct HCM styling r=omc-reviewers,jprickett
Differential Revision: https://phabricator.services.mozilla.com/D237757
2025-02-11 18:52:09 +00:00
Meg Viar
9693f34d69 Bug 1946551 - Updated aria-labelledby and aria-describedby for Spotlight modals r=omc-reviewers,jprickett
Differential Revision: https://phabricator.services.mozilla.com/D237608
2025-02-10 20:22:34 +00:00
Punam Dahiya
4197a454e1 Bug 1946458 - Remove wallpaper select custom handling in aboutwelcome bundle r=amy,omc-reviewers,emcminn,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D237130
2025-02-07 21:21:19 +00:00
Meg Viar
7dca8efc49 Bug 1941807 - Add ability to toggle AboutWelcome screen content by clicking a configurable header r=omc-reviewers,jprickett
Support a second variant of the preonboarding modal design by adding the ability to configure a header that toggles visiblity of content tiles.

- See design for [[ https://docs.google.com/presentation/d/1dDC9M9y-W3q90mkVRp4gq3p-x3u7F6qgy0jVeE4MwUw/edit#slide=id.g325219d6753_0_95 | modal Variant B ]]

Differential Revision: https://phabricator.services.mozilla.com/D235325
2025-01-24 13:30:07 +00:00
Meg Viar
7c87bfa6e2 Bug 1942837 - [Rollout] The Fox Doodle checkboxes are wrongly aligned on Nightly 136 r=negin,omc-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D235006
2025-01-22 17:53:24 +00:00
Meg Viar
2b856b0ec6 Bug 1942324 - Lands strings for preonboarding modal r=omc-reviewers,emcminn,bolsson
- Add new preonboarding.ftl file ([[ https://docs.google.com/presentation/d/1dDC9M9y-W3q90mkVRp4gq3p-x3u7F6qgy0jVeE4MwUw/edit#slide=id.g325219d6753_0_95 | see finalized designs for strings ]])
- Make new ftl file available in Spotlight modals
- Fix header title and subtitle localization in ContentTiles component

Example of message using new strings:
{F11848633}

Differential Revision: https://phabricator.services.mozilla.com/D234683
2025-01-22 15:31:22 +00:00
Meg Viar
645b9b4605 Bug 1942323 - Add carat icon to Content Tile headers and ensure proper border-radius on headers above non-toggleable tiles r=omc-reviewers,negin
Differential Revision: https://phabricator.services.mozilla.com/D234731
2025-01-21 18:43:09 +00:00
Meg Viar
9e8ae04a1b Bug 1936656 - Add ability to show multiple content tiles on a single aboutwelcome screen with option to toggle visibility r=emcminn,omc-reviewers,jprickett
**Primary Updates**
- Add ability to show multiple content tiles on a single AboutWelcome screen by supporting an array of tile objects and/or sub-arrays of tile objects to be groups together as a value for "tiles" in screen content
- Keep compatibility with messages that use a single tile object as the value of "tiles" in screen content
- Add updates to `setMultiSelectActions` to ensure we can handle actions across multiple MultiSelect tiles.
- Add optional tile headers which can be displayed in place of the tile until clicked, closing any other tile with a header that's currently open
- Send click event telemetry when a user clicks a tile header to open the tile
- Update aboutwelcome source docs related to content tiles to include this new capability

**Additional Updates to Support UX Designs**
[[ https://www.figma.com/design/F63Ac1akw2q1fN5D59rgS5/Privacy?node-id=4110-16458&t=kSzPUp4XFLq0dKg8-4 |
See Figma designs ]]
- Add ability to configure `display`, `padding`, and `width` for aboutwelcome screens (this allows us to support the proposed Spotlight modal designs, which include anchoring the modal towards the top of the screen and expanding it downward when a tile is opened, rather than centering vertically)
- Add ability to configure action buttons to show above screen content

{F11717546}

Differential Revision: https://phabricator.services.mozilla.com/D231856
2025-01-15 16:29:23 +00:00
Cosmin Sabou
efae93e17d Backed out 2 changesets (bug 1938446, bug 1919598) for causing failures on browser_tabnotificationbox_switch_tabs and conflicts. CLOSED TREE
Backed out changeset be28df34cc76 (bug 1938446)
Backed out changeset ffa630d286bb (bug 1919598)
2025-01-11 01:58:14 +02:00
negin
34caedb5e0 Bug 1919598 - Land Firefox View Discoverability treatment-b in mc- r=omc-reviewers,fluent-reviewers,emcminn,accessibility-frontend-reviewers,nstroud
Differential Revision: https://phabricator.services.mozilla.com/D229198
2025-01-10 21:31:18 +00:00
Meg Viar
81a9ec1500 Bug 1937625 - Strengthen embedded browser element flags in Messaging System r=omc-reviewers,nalexander,nika,negin
Enhancements for the embedded browser component in AboutWelcome:

- Improve the speed at which the browser starts by predicting the `remoteType` the load is going to finish in
- Set `maychangeremoteness` attribute to true to allow changing remoteness if user navigates to a different URL that requires this (such as an `about:` page, though with the current set up `about:` pages won't load for security reasons).
- Set `nodefaultsrc` attribute to true to avoid loading a default URL if `src` is blank

Differential Revision: https://phabricator.services.mozilla.com/D232425
2025-01-08 00:14:40 +00:00
Sarah Clements
3edf988f42 Bug 1935045 - Add sidebar visibility pref support for experiments r=Mardak,mviar,omc-reviewers,sidebar-reviewers,nsharpley
* Update nimbus variable and browser-sidebar to avoid resetting pref after experiment end
* Allow use of sidebar visibility as a set pref multi-action from spotlight modal

Differential Revision: https://phabricator.services.mozilla.com/D231387
2024-12-09 12:38:01 +00:00
Emily McMinn
b95a504ab7 Bug 1928125 - Mark up Mobile screen CTA as a link r=omc-reviewers,hanna_a
Differential Revision: https://phabricator.services.mozilla.com/D229516
2024-12-06 21:44:54 +00:00
Meg Viar
1c2f1ef300 Bug 1933256 - Add embeddable browser component for use in multistage Spotlight context r=omc-reviewers,home-newtab-reviewers,mconley,negin
Differential Revision: https://phabricator.services.mozilla.com/D230284
2024-12-03 16:25:04 +00:00
Meg Viar
48ab3860bf Bug 1923868 - Support setting Firefox as default based on installer attribution campaign r=firefox-desktop-core-reviewers ,nalexander,omc-reviewers,pdahiya
This patch adds an startup idle task that sets the browser as default if an attribution campaign id of "set_default_browser" is present on first run. This works supports an upcoming experiment where users will have the option to "download as default" via [[ https://www.mozilla.org/en-US/firefox/new/ | the stub installer marketing page ]].

Differential Revision: https://phabricator.services.mozilla.com/D225212
2024-11-25 18:14:28 +00:00
Alexandru Marc
f8117504e2 Backed out changeset a2435b289727 (bug 1923868) for causing bc failures @ browser_aboutwelcome_multistage_languageSwitcher.js. CLOSED TREE 2024-11-22 19:14:57 +02:00
Meg Viar
cf5467d380 Bug 1923868 - Support setting Firefox as default based on installer attribution campaign r=firefox-desktop-core-reviewers ,nalexander,omc-reviewers,pdahiya
This patch adds an startup idle task that sets the browser as default if an attribution campaign id of "set_default_browser" is present on first run. This works supports an upcoming experiment where users will have the option to "download as default" via [[ https://www.mozilla.org/en-US/firefox/new/ | the stub installer marketing page ]].

Differential Revision: https://phabricator.services.mozilla.com/D225212
2024-11-22 14:29:15 +00:00